-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yaml
53 lines (53 loc) · 1.31 KB
/
docker-compose.yaml
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
services:
database:
environment:
POSTGRES_PASSWORD: postgres
PGDATA: /var/lib/postgresql/data/
healthcheck:
test: ["CMD", "pg_isready"]
hostname: database
image: postgres:15-alpine
restart: always
user: postgres
volumes:
- pgdata:/var/lib/postgresql/data/
demo:
build:
context: .
dockerfile: deploy/Dockerfiles/demo.Dockerfile
depends_on:
- state_server
- stream_server
ports:
- "8080:8080"
state_server:
build:
context: .
dockerfile: deploy/Dockerfiles/state_server.Dockerfile
depends_on:
- database
environment:
DATABASE_HOSTNAME: database
DATABASE_NAME: server_dev
DATABASE_PASSWORD: postgres
DATABASE_URL: postgres://postgres:postgres@database:5432/server_dev
DATABASE_USERNAME: postgres
PHOENIX_LISTEN_IP: 0.0.0.0
PHOENIX_LISTEN_PORT: 4000
ports:
- "4000:4000"
stream_server:
build:
context: .
dockerfile: deploy/Dockerfiles/stream_server.Dockerfile
environment:
MEDIASOUP_ANNOUNCED_IP: ${MEDIASOUP_ANNOUNCED_IP}
MEDIASOUP_LISTEN_IP: 0.0.0.0
MEDIASOUP_LISTEN_PORT: 3000
MEDIASOUP_RTC_MAX_PORT: 2039
MEDIASOUP_RTC_MIN_PORT: 2000
ports:
- "3000:3000"
- "2000-2039:2000-2039"
volumes:
pgdata: