-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (45 loc) · 1.79 KB
/
docker-compose.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
version: "3.9"
services:
convertium:
restart: unless-stopped
image: ghcr.io/josiahbull/convertium:main
# build: .
volumes:
- '/media/movies:/movies'
- '/media/tv:/tv'
environment:
# number of seconds between scans
- SCAN_INTERVAL=900 # 15 min
# comma separated list of paths to scan
- BASE_PATHS=/movies,/tv
# comma separated list of extensions to attempt conversions on
- VALID_EXTENSIONS=.mp4,.mkv,.avi,.mov,.wmv,.mpg,.mpeg
# comma seperated list of ffmpeg arguments to pass when converting
- FFMPEG_ARGUMENTS=-c:v,libx264,-crf,20,-preset,slow,-c:a,mp3,-b:a,192k,-vf,scale=1920:1080,-movflags,+faststart,-loglevel,error,-y
- PYTHON_ENV=production
# The times of day between which conversions should occur, strictly in 24-hour format, strictly with only a single pair of timestamps.
# Optionally, thread limits may be added to the timestamps - this can be used to create a "high performance" time of day,
# where other tasks may be impacted. Note that 01:00T#7-07:00t#2 would use 7 threads between 1am->7am, and then 2 threads from 7am->1am.
# setting threads to 0 will disable ANY conversions in that time of day. Omitting a thread requirement will allow unlimited threads.
- CONVERSION_TIMES=00:00-07:00T#0
depends_on:
- postgres
postgres:
restart: unless-stopped
image: postgres
volumes:
- './data:/var/lib/postgresql/data'
environment:
- POSTGRES_USER=convertium
- POSTGRES_PASSWORD=convertium
- POSTGRES_DB=convertium
autoheal:
restart: unless-stopped
image: willfarrell/autoheal
environment:
- AUTOHEAL_CONTAINER_LABEL=all
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- convertium
- postgres