services: << service_name >>: image: ghcr.io/wg-easy/wg-easy:latest container_name: << service_name >> ports: - "<< vpn_port >>:51820/udp" - "<< port >>:51821/tcp" environment: - TZ=<< timezone >> - WG_HOST=<< host >> - PASSWORD_HASH=<< password_hash >> - WG_PORT=<< vpn_port >> volumes: - << data_dir >>/<< service_name >>/config:/etc/wireguard cap_add: - NET_ADMIN - SYS_MODULE sysctls: - net.ipv4.ip_forward=1 - net.ipv4.conf.all.src_valid_mark=1 restart: unless-stopped