Add TV_Containers/jellyfin/compose.yaml
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
services:
|
||||
jellyfin:
|
||||
image: jellyfin/jellyfin
|
||||
container_name: jellyfin
|
||||
# --- run as unprivileged, no escalation ---
|
||||
user: "1000:1000"
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
cap_drop:
|
||||
- ALL
|
||||
read_only: true
|
||||
tmpfs:
|
||||
- /tmp:size=512m
|
||||
|
||||
ports:
|
||||
- 8096:8096/tcp
|
||||
- 7359:7359/udp
|
||||
|
||||
volumes:
|
||||
- /srv/docker/jellyfin/config:/config
|
||||
- /srv/docker/jellyfin/cache:/cache
|
||||
- type: bind
|
||||
source: /path/to/media
|
||||
target: /media
|
||||
- type: bind
|
||||
source: /path/to/media2
|
||||
target: /media2
|
||||
read_only: true
|
||||
restart: 'unless-stopped'
|
||||
# Optional - alternative address used for autodiscovery
|
||||
environment:
|
||||
- JELLYFIN_PublishedServerUrl=http://${SERVICE_NAME}.${DOMAIN_NAME}
|
||||
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
|
||||
extra_hosts:
|
||||
- 'host.docker.internal:host-gateway'
|
||||
Reference in New Issue
Block a user