services: wg-easy: environment: # Change Language: # (Supports: en, ua, ru, tr, no, pl, fr, de, ca, es, ko, vi, nl, is, pt, chs, cht, it, th, hi) - LANG=en # ⚠️ Required: # Change this to your host's public address - WG_HOST=wg.dothackinc.com # Optional: - PASSWORD_HASH=$$2a$$12$$06eJr3wwwZnDwiOg7PN7oeGkmOeSCl/QIvHhSDeuwYAPCT3OX09cW # - PORT=51821 # - WG_PORT=51820 # - WG_DEFAULT_ADDRESS=10.8.0.x - WG_DEFAULT_DNS=172.16.0.50,172.16.0.38 # - WG_MTU=1420 - WG_ALLOWED_IPS=172.16.1.0/24,172.16.0.0/24,172.16.45.1/32 # - WG_PERSISTENT_KEEPALIVE=25 # - WG_PRE_UP=echo "Pre Up" > /etc/wireguard/pre-up.txt # - WG_POST_UP=echo "Post Up" > /etc/wireguard/post-up.txt # - WG_PRE_DOWN=echo "Pre Down" > /etc/wireguard/pre-down.txt # - WG_POST_DOWN=echo "Post Down" > /etc/wireguard/post-down.txt # - UI_TRAFFIC_STATS=true # - UI_CHART_TYPE=0 # (0 Charts disabled, 1 # Line chart, 2 # Area chart, 3 # Bar chart) image: ghcr.io/wg-easy/wg-easy container_name: wg-easy volumes: - ./docker-persist/wireguard:/etc/wireguard ports: - "0.0.0.0:51820:51820/udp" - "0.0.0.0:51821:51821/tcp" restart: unless-stopped cap_add: - NET_ADMIN - SYS_MODULE sysctls: - net.ipv4.ip_forward=1 - net.ipv4.conf.all.src_valid_mark=1