services: wireguard: image: {{ wireguard_image }} container_name: wireguard cap_add: - NET_ADMIN environment: - PUID=1000 - PGID=1000 - TZ=Asia/Shanghai - SERVERURL=us4.wsvc.info - SERVERPORT=51820 - PEERS=ha,phone,mbp - PEERDNS=1.1.1.1 # Intentional: client IPv6 traffic is not tunneled. - ALLOWEDIPS=0.0.0.0/0 ports: - 51820:51820/udp volumes: - ./config:/config read_only: true tmpfs: - /run:exec restart: unless-stopped