mirror of https://github.com/wg-easy/wg-easy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
483 B
24 lines
483 B
version: "3.8"
|
|
volumes:
|
|
etc_wireguard:
|
|
|
|
services:
|
|
amnezia-wg-easy:
|
|
env_file:
|
|
- .env
|
|
build: .
|
|
container_name: amnezia-wg-easy
|
|
volumes:
|
|
- ~/.amnezia-wg-easy:/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
|
|
|