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
29
compose.yaml
29
compose.yaml
|
|
@ -8,7 +8,29 @@ networks:
|
||||||
# gateway: "2a01:4f8:120:2144::254"
|
# gateway: "2a01:4f8:120:2144::254"
|
||||||
|
|
||||||
services:
|
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:
|
emby:
|
||||||
image: lscr.io/linuxserver/emby:latest
|
image: lscr.io/linuxserver/emby:latest
|
||||||
container_name: emby
|
container_name: emby
|
||||||
|
|
@ -40,9 +62,8 @@ services:
|
||||||
capabilities: [gpu]
|
capabilities: [gpu]
|
||||||
ports:
|
ports:
|
||||||
- "8096:8096"
|
- "8096:8096"
|
||||||
networks:
|
network_mode: "service:wireguard"
|
||||||
emby_sascha_network:
|
|
||||||
# ipv6_address: 2a01:4f8:120:2144::c101:eb1
|
|
||||||
volumes:
|
volumes:
|
||||||
data:
|
data:
|
||||||
name: emby_data
|
name: emby_data
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue