adds UPnP service to WireGuard Docker Compose configuration

This commit is contained in:
Menno van Leeuwen 2024-11-11 15:19:21 +01:00
parent 803843bc24
commit 6f08b3ebb2
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -1,7 +1,17 @@
version: '3.8'
name: wireguard
services:
wireguard:
upnp:
image: ghcr.io/vleeuwenmenno/auto-upnp:latest
restart: unless-stopped
network_mode: host
environment:
UPNP_DURATION: 86400 # 24 hours in seconds
PORTS: |
[
{"port": 51820, "protocol": "udp"}
]
server:
image: lscr.io/linuxserver/wireguard:latest
container_name: wireguard
cap_add: