Update compose.yaml to add WireGuard service
This commit is contained in:
parent
ff190b8c69
commit
59d1052bdb
1 changed files with 33 additions and 12 deletions
45
compose.yaml
45
compose.yaml
|
|
@ -1,23 +1,45 @@
|
||||||
networks:
|
networks:
|
||||||
emby_chris_network:
|
emby_sascha_network:
|
||||||
|
enable_ipv6: false
|
||||||
name: emby_chris_network
|
name: emby_chris_network
|
||||||
|
|
||||||
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
|
||||||
|
- 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
|
||||||
|
ports:
|
||||||
|
- 0.0.0.0:8096:8096 # Emby erbt diesen Port über network_mode
|
||||||
|
sysctls:
|
||||||
|
- net.ipv4.conf.all.src_valid_mark=1
|
||||||
|
- net.ipv4.ip_forward=1 # ← NEU: Forwarding im Container
|
||||||
|
networks:
|
||||||
|
- emby_chris_network # ← NEU: Netzwerk zuweisen
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
emby_chris:
|
emby:
|
||||||
image: lscr.io/linuxserver/emby:latest
|
image: lscr.io/linuxserver/emby:latest
|
||||||
container_name: emby_chris
|
container_name: emby
|
||||||
volumes:
|
volumes:
|
||||||
- /app-config/emby:/config
|
- /app-config/emby:/config
|
||||||
- /app-config/backup:/backup
|
- /app-config/emby_backup:/backup
|
||||||
- data:/data:ro
|
- data:/data
|
||||||
- chris:/chris
|
tmpfs:
|
||||||
- /transcode:/tmp
|
- /tmp:size=8G,mode=1777
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Berlin
|
- TZ=Europe/Berlin
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
- OutputLogsToDocker=1
|
|
||||||
- NVIDIA_DRIVER_CAPABILITIES=all
|
- NVIDIA_DRIVER_CAPABILITIES=all
|
||||||
- NVIDIA_VISIBLE_DEVICES=all
|
- NVIDIA_VISIBLE_DEVICES=all
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
@ -34,10 +56,9 @@ services:
|
||||||
- driver: nvidia
|
- driver: nvidia
|
||||||
count: all
|
count: all
|
||||||
capabilities: [gpu]
|
capabilities: [gpu]
|
||||||
ports:
|
network_mode: "service:wireguard" # Emby nutzt WireGuard-Netzwerk
|
||||||
- "8096:8096"
|
depends_on:
|
||||||
networks:
|
- wireguard # ← NEU: Startreihenfolge sichern
|
||||||
- emby_chris_network
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
data:
|
data:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue