amnezia-wg-easy/docker-compose.yml
w0rng c607a96743 Merge remote-tracking branch 'refs/remotes/wg/master'
# Conflicts:
#	.github/CODEOWNERS
#	How_to_generate_an_bcrypt_hash.md
#	README.md
#	docker-compose.dev.yml
#	docker-compose.yml
2024-08-11 15:01:58 +07:00

23 lines
491 B
YAML

volumes:
etc_wireguard:
services:
amnezia-wg-easy:
env_file:
- .env
image: ghcr.io/w0rng/amnezia-wg-easy
container_name: amnezia-wg-easy
volumes:
- etc_wireguard:/etc/wireguard
ports:
- "${WG_PORT}:51820/udp"
- "${PORT}:${PORT}/tcp"
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
devices:
- /dev/net/tun:/dev/net/tun