-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (60 loc) · 1.49 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (60 loc) · 1.49 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
60
61
62
63
64
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: streaming
POSTGRES_PASSWORD: streaming
POSTGRES_DB: streaming
ports:
- "55432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U streaming"]
interval: 5s
retries: 10
redis:
image: redis:8-alpine
ports:
- "56379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
retries: 10
ingest:
build:
context: .
dockerfile: Dockerfile.ingest
depends_on:
postgres: { condition: service_healthy }
environment:
DATABASE_URL: postgres://streaming:streaming@postgres:5432/streaming?sslmode=disable
MEDIA_DIR: /var/streaming
GRPC_ADDR: ":9090"
ports:
- "9090:9090"
volumes:
- media_data:/var/streaming
playback:
build:
context: .
dockerfile: Dockerfile
args:
SERVICE: playback
depends_on:
postgres: { condition: service_healthy }
redis: { condition: service_healthy }
environment:
DATABASE_URL: postgres://streaming:streaming@postgres:5432/streaming?sslmode=disable
MEDIA_DIR: /var/streaming
HTTP_ADDR: ":9005"
REDIS_ADDR: redis:6379
SIGNING_SECRET: ${SIGNING_SECRET:-dev-secret-change-me}
SIGNATURE_TTL: 1h
ports:
- "9005:9005"
volumes:
- media_data:/var/streaming:ro
volumes:
postgres_data:
media_data: