forked from mirrors/amnezia-wg-easy
- patched for kmod usage - https://github.com/w0rng/amnezia-wg-easy/compare/master...timopheysky:amnezia-wg-easy:master - build witch docker compose - support Alpine Linux
26 lines
563 B
YAML
26 lines
563 B
YAML
volumes:
|
|
etc_wireguard:
|
|
|
|
services:
|
|
amnezia-wg-easy:
|
|
env_file:
|
|
- .env
|
|
image: amnezia-wg-easy
|
|
build:
|
|
context: .
|
|
container_name: amnezia-wg-easy
|
|
volumes:
|
|
- etc_wireguard:/etc/wireguard
|
|
ports:
|
|
- "${WG_PORT}:${WG_PORT}/udp"
|
|
- "${PORT}:${PORT}/tcp"
|
|
restart: unless-stopped
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_MODULE
|
|
# - NET_RAW # ⚠️ Uncomment if using Podman
|
|
sysctls:
|
|
- net.ipv4.ip_forward=1
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|