-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (33 loc) · 1.05 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
version: '3.9'
services:
rclone:
container_name: rclone
image: rclone/rclone
volumes:
- ./${DATA}:/${DATA}:shared
- ./rclone:/config/rclone/
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
cap_add:
- SYS_ADMIN
security_opt:
- apparmor:unconfined
entrypoint: rclone mount ${Network_Disk_Name}:/ /${DATA} --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 --vfs-cache-max-size 8G --vfs-cache-max-age 3m --vfs-cache-mode writes
devices:
- "/dev/fuse:/dev/fuse"
healthcheck:
test: cat /${DATA}/config.json
interval: 5s
timeout: 30s
retries: 50
brec:
container_name: brec
image: bililive/recorder
volumes:
- ./${DATA}:/${DATA}:shared
ports:
- "${PORT}:${PORT}"
entrypoint: dotnet /app/BililiveRecorder.Cli.dll run --bind "http://${HOST}:${PORT}" --http-basic-user "${username}" --http-basic-pass "${password}" "/${DATA}"
depends_on:
rclone:
condition: service_healthy