# WireGuard - VPN server
# Port: 51820/udp
# Modern, fast VPN tunnel


services:
  wgeasy:
    image: ghcr.io/wg-easy/wg-easy
    network_mode: "bridge"
    container_name: wgeasy
    ports:
      - "51820:51820/udp"
      - "51821:51821"
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
      - net.ipv4.ip_forward=1
    volumes:
      - /volume2/metadata/docker/wg-easy:/etc/wireguard
    environment:
      - WG_HOST=vishinator.synology.me
      - HASH_PASSWORD="REDACTED_PASSWORD"  # pragma: allowlist secret
    restart: unless-stopped
