373d6cfb08
The healthcheck ran 'curl -f', but the Emby image has neither curl nor a standalone wget -- only BusyBox. The probe ENOENT'd every run, the container stayed permanently unhealthy, and Traefik will not route to an unhealthy container, so the customer got a 404 while Emby itself was serving fine. Switched to the BusyBox-wget family via the /bin/busybox multi-call binary. Campaign 7 catalog sweep. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Nn3VgQk9iwEGgyx6QJ2NvE
54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
# Emby - Személyes média szerver élő TV és DVR támogatással
|
|
# 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)
|
|
# USERDATA_PATH - Ügyfél-tartalom gyökér (<namespace>/userdata)
|
|
#
|
|
# Storage layout (felhom userdata convention):
|
|
# Médiatár → ${USERDATA_PATH}/media (csak olvasható)
|
|
|
|
services:
|
|
emby:
|
|
image: emby/embyserver:4.10.0.20
|
|
container_name: emby
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
- UID=1000
|
|
- GID=1000
|
|
volumes:
|
|
- emby_config:/config
|
|
- ${USERDATA_PATH}/media:/media:ro
|
|
networks:
|
|
- traefik-public
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 2048M
|
|
healthcheck:
|
|
# Az Emby képfájlban NINCS curl és nincs önálló wget — csak BusyBox van.
|
|
# A korábbi curl-próba ezért soha nem futott le, a konténer véglegesen
|
|
# unhealthy maradt, és a Traefik nem irányított rá forgalmat (404).
|
|
test: ["CMD", "/bin/busybox", "wget", "--spider", "-q", "http://127.0.0.1:8096/emby/system/ping"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.emby.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
|
|
- "traefik.http.routers.emby.entrypoints=websecure"
|
|
- "traefik.http.routers.emby.tls=true"
|
|
- "traefik.http.routers.emby.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.emby.loadbalancer.server.port=8096"
|
|
|
|
volumes:
|
|
emby_config:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|