Update WG-Easy/Docker-Compose.yml
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
services:
|
services:
|
||||||
wg-easy:
|
wg-easy:
|
||||||
#environment:
|
environment:
|
||||||
# Optional:
|
# Optional:
|
||||||
# - PORT=51821
|
# - PORT=51821
|
||||||
# - HOST=0.0.0.0
|
# - HOST=0.0.0.0
|
||||||
# - INSECURE=false
|
# - INSECURE=false
|
||||||
|
- DISABLE_IPV6
|
||||||
|
- INIT_ENABLED
|
||||||
|
- WG_HOST=wg-easy.domain.com
|
||||||
|
- WG_PORT=51822
|
||||||
# - WG_MTU=1420
|
# - WG_MTU=1420
|
||||||
|
|
||||||
image: ghcr.io/wg-easy/wg-easy:latest
|
image: ghcr.io/wg-easy/wg-easy:latest
|
||||||
@@ -16,7 +20,7 @@ services:
|
|||||||
- /srv/docker/wg-easy:/etc/wireguard # Volume mapping for WireGuard configuration files.
|
- /srv/docker/wg-easy:/etc/wireguard # Volume mapping for WireGuard configuration files.
|
||||||
- /lib/modules:/lib/modules:ro
|
- /lib/modules:/lib/modules:ro
|
||||||
ports:
|
ports:
|
||||||
- "51820:51820/udp" # UDP port used by WireGuard.
|
- "51822:51820/udp" # UDP port used by WireGuard.
|
||||||
- "51821:51821/tcp" # TCP port for accessing the web interface.
|
- "51821:51821/tcp" # TCP port for accessing the web interface.
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
cap_add: # Capabilities required for managing networking features.
|
cap_add: # Capabilities required for managing networking features.
|
||||||
|
|||||||
Reference in New Issue
Block a user