-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
98 lines (94 loc) · 2.28 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
services:
recording:
build:
context: ./recording
container_name: wbor-archiver-recorder
restart: always
volumes:
- ./archive:/archive
environment:
- STATION_ID
- STREAM_URL
- ARCHIVE_DIR
- SEGMENT_DURATION_SECONDS
- TZ
logging:
driver: "json-file"
options:
max-size: "50m" # Max log file size before rotation (50MB)
max-file: "3" # Keep last 3 rotated log files
networks:
- wbor-network
archive-watchdog:
build:
context: ./archive-watchdog
container_name: wbor-archiver-watchdog
restart: always
volumes:
- ./archive:/archive
environment:
- ARCHIVE_DIR
- SEGMENT_DURATION_SECONDS
- TZ
logging:
driver: "json-file"
options:
max-size: "50m" # Max log file size before rotation (50MB)
max-file: "3" # Keep last 3 rotated log files
networks:
- wbor-network
# api:
# build:
# context: ./backend
# container_name: wbor-archiver-backend
# restart: unless-stopped
# volumes:
# - ./archive:/archive:ro # The API only needs read-only permission
# ports:
# - "8000:8000" # For local development
# healthcheck:
# test: ["CMD-SHELL", "curl -f http://localhost:8000/ || exit 1"]
# interval: 30s
# timeout: 5s
# retries: 3
# start_period: 10s
# networks:
# - wbor-network
# web:
# build:
# context: ./web
# container_name: wbor-archiver-web
# restart: unless-stopped
# ports:
# - "3000:80" # Direct local access for debugging
# depends_on:
# - api
# healthcheck:
# test: ["CMD-SHELL", "curl -f http://localhost:80/ || exit 1"]
# interval: 30s
# timeout: 5s
# retries: 3
# start_period: 10s
# networks:
# - wbor-network
# proxy:
# build:
# context: ./proxy
# container_name: wbor-archiver-proxy
# restart: unless-stopped
# ports:
# - "80:80"
# depends_on:
# - api
# - web
# healthcheck:
# test: ["CMD-SHELL", "curl -f http://localhost:80/ || exit 1"]
# interval: 30s
# timeout: 5s
# retries: 3
# start_period: 10s
# networks:
# - wbor-network
networks:
wbor-network:
driver: bridge