-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
95 lines (88 loc) · 2.04 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
version: '3'
services:
db:
platform: linux/amd64
image: mysql
env_file: .env
networks:
- custom_network
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: ${DB_PW}
volumes:
- ./server/api-server/sql:/docker-entrypoint-initdb.d
redis:
platform: linux/amd64
image: redis
env_file: .env
networks:
- custom_network
ports:
- 6379:6379
api-server:
platform: linux/amd64
depends_on:
- db
- redis
build: ./server/api-server
env_file: ./server/api-server/.env
networks:
- custom_network
ports:
- 3000:3000
environment:
DB_HOST: db
DB_PORT: ${DB_PORT}
DB_ID: root
DB_PW: ${DB_PW}
DB_NAME: ${DB_NAME}
VIDEO_STAT_URL: http://host.docker.internal:802/stat
REDIS_URL: redis://redis:6379
NAVER_CLIENT_ID: ${NAVER_CLIENT_ID}
NAVER_CLIENT_SECRET: ${NAVER_CLIENT_SECRET}
NAVER_CALLBACK_URL: ${NAVER_CALLBACK_URL}
SESSION_SECRET: ${SESSION_SECRET}
CLIENT_ORIGIN: ${CLIENT_ORIGIN}
ENCODING_URL: rtmp://172.20.0.10/stream
PORT: 3000
NODE_ENV: development
rtmp-server:
build: ./server/rtmp-server
platform: linux/amd64
networks:
- custom_network
ports:
- 1935:1935
- 802:80
environment:
STREAM_KEY_CHECK_URL: http://host.docker.internal:3000/stream-keys
encoding-server:
image: jmhee3410/gbs:2.0
platform: linux/amd64
privileged: true
env_file: .env
networks:
custom_network:
ipv4_address: 172.20.0.10
ports:
- 19350:1935
- 803:80
environment:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_S3_BUCKET_NAME: ${AWS_S3_BUCKET_NAME}
AWS_S3_REGION: ${AWS_S3_REGION}
AWS_S3_URL: ${AWS_S3_URL}
front:
platform: linux/amd64
build: ./client
networks:
- custom_network
ports:
- 80:80
networks:
custom_network:
ipam:
config:
- subnet: 172.20.0.0/16