50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
# Plex - Népszerű média szerver csiszolt felülettel
|
|
# Domain: plex.${DOMAIN}
|
|
# Database: None (file-based)
|
|
# RAM: ~512M (mem_limit: 2048M) | Pi-compatible: No
|
|
#
|
|
# Environment variables:
|
|
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
|
# PLEX_CLAIM - Plex Claim Token
|
|
# HDD_PATH - Médiatár útvonal
|
|
|
|
services:
|
|
plex:
|
|
image: plexinc/pms-docker:1.41.4.9463-630c9f557
|
|
container_name: plex
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
- PLEX_CLAIM=${PLEX_CLAIM}
|
|
volumes:
|
|
- plex_config:/config
|
|
- plex_transcode:/transcode
|
|
- ${HDD_PATH}/media:/media:ro
|
|
networks:
|
|
- traefik-public
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 2048M
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:32400/identity"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.plex.rule=Host(`plex.${DOMAIN}`)"
|
|
- "traefik.http.routers.plex.entrypoints=websecure"
|
|
- "traefik.http.routers.plex.tls=true"
|
|
- "traefik.http.routers.plex.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.plex.loadbalancer.server.port=32400"
|
|
|
|
volumes:
|
|
plex_config:
|
|
plex_transcode:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|