34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
services:
|
|
plex:
|
|
image: lscr.io/linuxserver/plex:1.43.1.10611-1e34174b1-ls302
|
|
container_name: plex
|
|
network_mode: host
|
|
restart: unless-stopped
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=America/New_York
|
|
- VERSION=docker
|
|
- PLEX_CLAIM=${PLEX_CLAIM}
|
|
- NVIDIA_VISIBLE_DEVICES=all
|
|
- NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
|
|
volumes:
|
|
- /mnt/appdata/plex:/config
|
|
- /mnt/media/tvshows:/tv
|
|
- /mnt/media/movies:/movies
|
|
- /mnt/media/incoming/downloads-pinchflat:/youtube
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: 1
|
|
capabilities: [gpu]
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.plex.entrypoints=websecure"
|
|
- "traefik.http.routers.plex.rule=Host(`plex.castaldifamily.com`)"
|
|
- "traefik.http.routers.plex.tls=true"
|
|
- "traefik.http.routers.plex.tls.certresolver=cloudflare"
|
|
- "traefik.http.services.plex.loadbalancer.server.port=32400"
|