forked from ihmily/StreamCap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (57 loc) · 1.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (57 loc) · 1.61 KB
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
57
58
59
services:
streamcap:
# 1. 使用本地构建,不再直接拉取镜像
build:
context: .
dockerfile: Dockerfile
args:
- PUID=${CURRENT_UID:-1000}
- PGID=${CURRENT_GID:-1000}
- http_proxy=http://192.168.50.66:7890
- https_proxy=http://192.168.50.66:7890
- no_proxy=localhost,127.0.0.1
tty: true
ports:
- "${PORT:-6006}:${PORT:-6006}"
environment:
- PORT=${PORT:-6006}
- TZ=${TZ:-Asia/Shanghai}
volumes:
- ./logs:/app/logs
- ./config:/app/config
- /media/iso/hdd3/steamcap/:/app/downloads
- ./.env:/app/.env
healthcheck:
test: ["CMD", "sh", "-c", "curl -f http://localhost:${PORT:-6006}/about"]
interval: 30s
timeout: 10s
retries: 3
networks:
- streamcap-network
video_api:
# 同样使用构建模式,共享同一套构建代码,但运行不同的命令
build:
context: .
dockerfile: Dockerfile
args:
- PUID=${CURRENT_UID:-1000}
- PGID=${CURRENT_GID:-1000}
- http_proxy=http://192.168.50.66:7890
- https_proxy=http://192.168.50.66:7890
- no_proxy=localhost,127.0.0.1
command: python -m app.api.video_stream_service
ports:
- "${VIDEO_API_PORT:-6007}:${VIDEO_API_PORT:-6007}"
environment:
- TZ=${TZ:-Asia/Shanghai}
- CUSTOM_VIDEO_ROOT_DIR=${CUSTOM_VIDEO_ROOT_DIR:-./downloads}
volumes:
- /media/iso/hdd3/steamcap/:/app/downloads
- ./.env:/app/.env
depends_on:
- streamcap
networks:
- streamcap-network
networks:
streamcap-network:
driver: bridge