AmneziaWG/docker-compose.yml

25 lines
549 B
YAML
Raw Normal View History

2025-04-02 14:11:31 +03:00
volumes:
2025-04-02 14:16:12 +03:00
etc_wireguard:
2025-04-02 14:11:31 +03:00
services:
amnezia-wg-easy:
env_file:
- .env
2025-04-02 14:16:12 +03:00
image: ghcr.io/w0rng/amnezia-wg-easy
2025-04-02 14:11:31 +03:00
container_name: amnezia-wg-easy
volumes:
2025-04-02 14:16:12 +03:00
- etc_wireguard:/etc/wireguard
2025-04-02 14:11:31 +03:00
ports:
2025-04-02 14:16:12 +03:00
- "${WG_PORT}:${WG_PORT}/udp"
2025-04-02 14:11:31 +03:00
- "${PORT}:${PORT}/tcp"
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
2025-04-02 14:16:12 +03:00
# - NET_RAW # ⚠️ Uncomment if using Podman
2025-04-02 14:11:31 +03:00
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
devices:
2025-04-02 14:16:12 +03:00
- /dev/net/tun:/dev/net/tun