-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
29 lines (27 loc) · 904 Bytes
/
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
version: "3.7"
x-labels:
labels: &default-label
youtubelivechattodiscord:
services:
youtubelivechattodiscord:
image: ghcr.io/jim60105/youtubelivechattodiscord
# build: .
labels: *default-label
restart: on-failure:3 # yt-dlp is easyily to get stuck in a restart-failed loop during long-term downloads
# volumes:
# - ./appsettings.json:/app/appsettings.json
# - ./cookies.txt:/app/cookies.txt
# Youtube videoId, discord webhook url
command: ["", ""]
# Restart main container every hour.
jobber:
image: blacklabelops/jobber:docker
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- JOB_NAME1=start
- JOB_COMMAND1=docker start $$(docker ps -aqf "label=youtubelivechattodiscord")
- JOB_TIME1=0 0 * * * * #Every hour
- JOB_NOTIFY_ERR1=false
- JOB_NOTIFY_FAIL1=false