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

4
.gitignore vendored
View File

@ -13,4 +13,6 @@ samples/custom*/*.yaml
config.yaml 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

View File

@ -3,7 +3,7 @@ services:
image: traefik image: traefik
container_name: traefik container_name: traefik
restart: always restart: always
command: command:
- --certificatesresolvers.le.acme.email=${ACME_MAIL} - --certificatesresolvers.le.acme.email=${ACME_MAIL}
- --pilot.token=${PILOT_TOKEN} - --pilot.token=${PILOT_TOKEN}
ports: ports:
@ -21,4 +21,4 @@ volumes:
configtraefik: configtraefik:
driver: local-persist driver: local-persist
driver_opts: driver_opts:
mountpoint: $HOST_CONFIG_PATH/traefik mountpoint: $HOST_CONFIG_PATH/traefik