Skip to content

Instantly share code, notes, and snippets.

@ihsangan
Created May 7, 2025 09:11
Show Gist options
  • Save ihsangan/184ee27753f6cb911c91e6d58558fa36 to your computer and use it in GitHub Desktop.
Save ihsangan/184ee27753f6cb911c91e6d58558fa36 to your computer and use it in GitHub Desktop.
my wg-easy:edge compose file
services:
wg-easy:
image: ghcr.io/wg-easy/wg-easy:edge
container_name: wg-easy
environment:
- INSECURE=true
volumes:
- ~/.wg-easy:/etc/wireguard
- /lib/modules:/lib/modules:ro
ports:
- "51820:51820/udp"
- "51821:51821/tcp"
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv6.conf.all.forwarding=1
- net.ipv6.conf.default.forwarding=1
restart: unless-stopped
networks:
wg:
ipv4_address: 10.11.12.13
ipv6_address: fdcc:aa:bb:cc::dd
networks:
wg:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 10.11.12.0/24
- subnet: fdcc:aa:bb:cc::/64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment