mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
31 lines
824 B
YAML
31 lines
824 B
YAML
version: '3.8'
|
|
services:
|
|
jellyfin:
|
|
image: jellyfin/jellyfin:10
|
|
networks:
|
|
- dokploy-network
|
|
ports:
|
|
- ${JELLYFIN_PORT}
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.${HASH}.rule=Host(`${JELLYFIN_HOST}`)"
|
|
- "traefik.http.services.${HASH}.loadbalancer.server.port=${JELLYFIN_PORT}"
|
|
volumes:
|
|
- config:/config
|
|
- cache:/cache
|
|
- media:/media
|
|
restart: 'unless-stopped'
|
|
# Optional - alternative address used for autodiscovery
|
|
environment:
|
|
- JELLYFIN_PublishedServerUrl=http://${JELLYFIN_HOST}
|
|
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
|
|
extra_hosts:
|
|
- 'host.docker.internal:host-gateway'
|
|
volumes:
|
|
config:
|
|
cache:
|
|
media:
|
|
networks:
|
|
dokploy-network:
|
|
external: true
|