jellyfin/compose.yml

43 lines
1.3 KiB
YAML

---
version: "3.8"
services:
app:
image: jellyfin/jellyfin:10.8.13
environment:
- JELLYFIN_PublishedServerUrl=https://${DOMAIN}
networks:
- proxy
volumes:
- jellyfin_config:/config
- jellyfin_cache:/cache
- ${EXTRA_VOLUME}
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8096"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version=0.1.9+10.8.13"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8096"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
volumes:
jellyfin_config:
jellyfin_cache:
networks:
proxy:
external: true