Plex: add port and enable host mode for networking

This commit is contained in:
Jean 2022-11-07 21:28:39 +01:00
parent 2164a0cd51
commit 04ec9a6748
4 changed files with 15 additions and 3 deletions

2
.gitignore vendored
View File

@ -14,3 +14,5 @@ config.yaml
services/custom/*.yaml services/custom/*.yaml
services/custom/*.yml services/custom/*.yml
services/generated/*.yaml services/generated/*.yaml
authelia/*

View File

@ -3,11 +3,16 @@ services:
image: ghcr.io/linuxserver/plex image: ghcr.io/linuxserver/plex
container_name: plex container_name: plex
restart: always restart: always
network_mode: host
ports: ports:
- "32400:32400" - "32400:32400"
- "32400:32400/udp" - "32400:32400/udp"
- "32469:32469" - "32469:32469"
- "32469:32469/udp" - "32469:32469/udp"
- "32410:32410/udp"
- "32412:32412/udp"
- "32413:32413/udp"
- "32414:32414/udp"
devices: devices:
- /dev/dri:/dev/dri # for hardware transcoding - /dev/dri:/dev/dri # for hardware transcoding
volumes: volumes:

View File

@ -3,11 +3,16 @@ services:
image: ghcr.io/linuxserver/plex image: ghcr.io/linuxserver/plex
container_name: plex container_name: plex
restart: always restart: always
network_mode: host
ports: ports:
- "32400:32400" - "32400:32400"
- "32400:32400/udp" - "32400:32400/udp"
- "32469:32469" - "32469:32469"
- "32469:32469/udp" - "32469:32469/udp"
- "32410:32410/udp"
- "32412:32412/udp"
- "32413:32413/udp"
- "32414:32414/udp"
volumes: volumes:
- configplex:/config - configplex:/config
- torrents:/torrents - torrents:/torrents