Update Remote-Access_Containers/wg-easy/compose.yaml
This commit is contained in:
@@ -5,31 +5,24 @@ services:
|
||||
network_mode: host
|
||||
environment:
|
||||
LANG: en
|
||||
WG_HOST: ${WG_HOST} # Public IP or domain name where WG-Easy is accessible.
|
||||
#PASSWORD: # Password for accessing the WG-Easy web interface.
|
||||
PORT: 51821 # Port for the web interface.
|
||||
WG_PORT: 51820 # WireGuard port for VPN traffic.
|
||||
WG_HOST: ${WG_HOST}
|
||||
PORT: 51821
|
||||
WG_PORT: 51820
|
||||
WG_DEFAULT_ADDRESS: ${WG_DEFAULT_ADDRESS}
|
||||
WG_DEFAULT_DNS: ${WG_DEFAULT_DNS}
|
||||
WG_MTU: 1420
|
||||
#WG_CONFIG_PORT: 92820
|
||||
WG_ALLOWED_IPS: 0.0.0.0/0, ::/0
|
||||
volumes:
|
||||
- /srv/docker/wg-easy:/etc/wireguard # Volume mapping for WireGuard configuration files.
|
||||
cap_add: # Capabilities required for managing networking features.
|
||||
- /srv/docker/wg-easy:/etc/wireguard
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE
|
||||
sysctls: # Kernel parameters that need to be set for WireGuard.
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
- net.ipv4.ip_forward=1
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
### Auto create icon on Flame dashboard
|
||||
- flame.type=application
|
||||
- flame.name=${SERVICE_NAME}
|
||||
- flame.url=http://${IP}:51821
|
||||
- flame.icon=https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/wireguard.png
|
||||
### Monitor with uptime-kuma
|
||||
- kuma.monitoring.group.name=Docker Containers
|
||||
- kuma.${SERVICE_NAME}.docker.parent_name=monitoring
|
||||
- kuma.${SERVICE_NAME}.docker.name=${SERVICE_NAME}
|
||||
|
||||
Reference in New Issue
Block a user