-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
90 lines (82 loc) · 1.79 KB
/
docker-compose-dev.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
# @format
name: "streaming-app"
services:
nginx-rtmp:
container_name: nginx-rtmp
image: tiangolo/nginx-rtmp
ports:
- "1935:1935"
- "8080:80"
volumes:
- ./media-server/rtmp/nginx.conf:/etc/nginx/nginx.conf
restart: unless-stopped
networks:
- streaming-app
gateway:
container_name: gateway
build:
context: ./media-server/gateway
dockerfile: Dockerfile
environment:
- STREAM_API_BASE_URL=http://backend:8080/api
- STREAM_API_KEY=AIzaSyD-9tSrke72PouQMnMX-a7eZSW0jkFMBWY
volumes:
- ./media-server/rtmp/nginx.conf:/etc/nginx/nginx.conf
restart: unless-stopped
depends_on:
- nginx-rtmp
networks:
- streaming-app
database:
image: postgres:latest
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: streaming-app
ports:
- "5432:5432"
volumes:
- ./database:/var/lib/postgresql/data
networks:
- streaming-app
redis:
image: redis:latest
container_name: redis
restart: unless-stopped
ports:
- "6379:6379"
networks:
- streaming-app
backend:
container_name: backend
restart: unless-stopped
build:
context: ./backend/src
dockerfile: Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Docker
# ports:
# - "5117:8080"
depends_on:
- database
- redis
networks:
- streaming-app
frontend:
container_name: frontend
restart: unless-stopped
build:
context: ./frontend
dockerfile: Dockerfile
networks:
- streaming-app
depends_on:
- backend
# ports:
# - "4200:80"
networks:
streaming-app:
driver: bridge
name: streaming-app