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.
26 lines
553 B
26 lines
553 B
volumes:
|
|
etc_wireguard:
|
|
|
|
services:
|
|
wg-easy:
|
|
environment:
|
|
- PORT=51821
|
|
# Optional:
|
|
# - HOST=0.0.0.0
|
|
# - WG_PATH=/etc/wireguard/
|
|
|
|
image: ghcr.io/wg-easy/wg-easy
|
|
container_name: wg-easy
|
|
volumes:
|
|
- etc_wireguard:/etc/wireguard
|
|
ports:
|
|
- "51820:51820/udp"
|
|
- "51821:51821/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
|
|
|