This repository has been archived by the owner on Oct 15, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yml
56 lines (56 loc) · 2.32 KB
/
docker-compose.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: "3.9"
services:
jellyfin:
image: ghcr.io/aleksasiriski/jellyfin-rffmpeg:latest
environment:
- TZ=Europe/Berlin
# - RFFMPEG_DATABASE_TYPE=postgres
# - RFFMPEG_DATABASE_HOST=localhost
# - RFFMPEG_DATABASE_PORT=5432
# - RFFMPEG_DATABASE_NAME=rffmpeg
# - RFFMPEG_DATABASE_USERNAME=postgres
# - RFFMPEG_DATABASE_PASSWORD=supersecurepassword
ports:
- ${JELLYFIN_LAN_ONLY_IP:-}:8096:8096 # public should access via reverse proxy
volumes:
- jellyfin-conf:/config:z
- /var/storage/media:/var/storage/media # optional media folder
restart: always
nfs-server:
image: ghcr.io/obeone/nfs-server:latest
cap_add:
- SYS_ADMIN
environment:
- TZ=Europe/Berlin
- NFS_EXPORT_0="/config/cache *(rw,sync,no_subtree_check,no_root_squash)"
- NFS_EXPORT_1="/config/transcodes *(rw,sync,no_subtree_check,no_root_squash)"
- NFS_EXPORT_2="/config/data/subtitles *(rw,sync,no_subtree_check,no_root_squash)"
# optional media folder share, if your media folder is already a network share you must remove this
- NFS_EXPORT_3="/var/storage/media *(rw,sync,no_subtree_check,no_root_squash)"
ports:
- ${JELLYFIN_LAN_ONLY_IP:-}:2049:2049
volumes:
- jellyfin-conf:/config:z
- /var/storage/media:/var/storage/media # optional media folder
restart: always
rffmpeg-autoscaler:
image: ghcr.io/aleksasiriski/rffmpeg-autoscaler:latest
environment:
- TZ=Europe/Berlin
- JELLYFIN_HOST=$JELLYFIN_LAN_ONLY_IP
- HETZNER_TOKEN=$HETZNER_TOKEN
# This must be the same as for Jellyfin, it's recommended over the default SQLite
# - DATABASE_TYPE=postgres
# - DATABASE_HOST=localhost
# - DATABASE_PORT=5432
# - DATABASE_NAME=rffmpeg
# - DATABASE_USERNAME=postgres
# - DATABASE_PASSWORD=supersecurepassword
# If you want to use SMB/CIFS mount for workers, you can pass credentials with these env vars
# - MEDIA_USERNAME=$MEDIA_USERNAME_FOR_WORKERS
# - MEDIA_PASSWORD=$MEDIA_PASSWORD_FOR_WORKERS
volumes:
- jellyfin-conf:/config:z # It's highly recommended to setup Postgres instead of using SQLite, but this volume should remain available for logs to appear in Jellyfin's admin interface
restart: always
volumes:
jellyfin-conf: