Files
app-catalog-felhom.eu/templates/plex/docker-compose.yml
T

56 lines
1.8 KiB
YAML

# Plex - Népszerű média szerver csiszolt felülettel
# Domain: ${SUBDOMAIN}.${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
# USERDATA_PATH - Ügyfél-tartalom gyökér (<namespace>/userdata)
#
# Storage layout (felhom userdata convention):
# Médiatár → ${USERDATA_PATH}/media (csak olvasható)
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}
# The address plex.tv hands to every app. Without it the server advertises only its container address and the
# public IP on :32400, neither reachable through the tunnel (measured 2026-10-14, felhom.eu 15-media-library.md §6).
- ADVERTISE_IP=https://${SUBDOMAIN}.${DOMAIN}:443/
volumes:
- plex_config:/config
- plex_transcode:/transcode
- ${USERDATA_PATH}/media:/media:ro
networks:
- traefik-public
deploy:
resources:
limits:
memory: 2048M
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:32400/identity"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
labels:
- "traefik.enable=true"
- "traefik.http.routers.plex.rule=Host(`${SUBDOMAIN}.${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