--- services: wg-portal: image: wgportal/wg-portal:v2 container_name: wg-portal restart: unless-stopped logging: options: max-size: "10m" max-file: "3" cap_add: - NET_ADMIN # Use host network mode for WireGuard and the UI. Ensure that access to the UI is properly secured. network_mode: "host" volumes: # left side is the host path, right side is the container path - /etc/wireguard:/etc/wireguard - ./data:/app/data - ./config:/app/config # restart: no # command: ["-migrateFrom=/app/data/wg_portal.db"]