Add WireGuard service to Docker Compose
Added WireGuard service configuration to compose.yaml.
This commit is contained in:
parent
ce9eea307f
commit
9be1f0b21d
1 changed files with 25 additions and 4 deletions
27
compose.yaml
27
compose.yaml
|
|
@ -8,6 +8,28 @@ networks:
|
|||
# gateway: "2a01:4f8:120:2144::254"
|
||||
|
||||
services:
|
||||
services:
|
||||
wireguard:
|
||||
image: lscr.io/linuxserver/wireguard:latest
|
||||
container_name: wireguard
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/Berlin
|
||||
- INTERNAL_CONTROL_MODS=true
|
||||
- NETWORK_INTERFACES=eth0
|
||||
- LOCAL_NETWORK=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,172.18.0.0/16
|
||||
volumes:
|
||||
- /app-config/wireguard/:/config
|
||||
- /lib/modules:/lib/modules # Notwendig für WireGuard im Kernel
|
||||
ports:
|
||||
- 0.0.0.0:8096:8096 # SABnzbd Web-UI Port wird hier nach außen gereicht
|
||||
sysctls:
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
restart: unless-stopped
|
||||
|
||||
emby:
|
||||
image: lscr.io/linuxserver/emby:latest
|
||||
|
|
@ -40,9 +62,8 @@ services:
|
|||
capabilities: [gpu]
|
||||
ports:
|
||||
- "8096:8096"
|
||||
networks:
|
||||
emby_sascha_network:
|
||||
# ipv6_address: 2a01:4f8:120:2144::c101:eb1
|
||||
network_mode: "service:wireguard"
|
||||
|
||||
volumes:
|
||||
data:
|
||||
name: emby_data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue