Add docker-compose configuration for Jellyfin service
This commit is contained in:
35
jellyfin/docker-compose.yml
Normal file
35
jellyfin/docker-compose.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
version: '3.5'
|
||||
services:
|
||||
jellyfin:
|
||||
image: jellyfin/jellyfin
|
||||
container_name: jellyfin
|
||||
user: 1000:1006
|
||||
volumes:
|
||||
- /docker-containers/jellyfin/config:/config
|
||||
- /docker-containers/jellyfin/cache:/cache
|
||||
- /Movies:/media/movies:ro
|
||||
- /TvShows:/media/tvshows:ro
|
||||
- /Videos:/media/videos:ro
|
||||
- /Music:/media/music:ro
|
||||
- /Pictures:/media/pictures:ro
|
||||
- /Books:/media/books:ro
|
||||
devices:
|
||||
- /dev/dri/renderD128:/dev/dri/renderD128
|
||||
ports:
|
||||
- 8096:8096/tcp
|
||||
- 7359:7359/udp
|
||||
restart: 'unless-stopped'
|
||||
# Optional - alternative address used for autodiscovery
|
||||
environment:
|
||||
- JELLYFIN_PublishedServerUrl=https://jellyfin.example.com
|
||||
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
|
||||
#extra_hosts:
|
||||
# - "host.docker.internal:host-gateway"
|
||||
stdin_open: true # to attach to containers
|
||||
tty: true # also used to attach to containers
|
||||
# network_mode: service:wireguard # To run through vpn service container, in turn UI port must be forwarded inside vpn. No local access unless otherwise defined
|
||||
networks: # Specify network for container
|
||||
- homelab
|
||||
networks: # specify the network 2x. In service, and in this tag area
|
||||
homelab:
|
||||
external: true # join the above network instead of making a _default one
|
||||
Reference in New Issue
Block a user