-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (82 loc) · 1.59 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
version: '3.8'
networks:
backend:
emqx-bridge:
driver: bridge
srs:
volumes:
vol-emqx-data:
vol-emqx-etc:
vol-emqx-log:
services:
emqx:
image: emqx:5.1.0
restart: unless-stopped
environment:
EMQX_NAME: emqx
EMQX_HOST: 127.0.0.1
healthcheck:
test: [ "CMD", "/opt/emqx/bin/emqx_ctl", "status" ]
interval: 5s
timeout: 25s
retries: 5
networks:
- emqx-bridge
ports:
- "1883:1883"
- "8083:8083"
- "8084:8084"
- "8883:8883"
- "18083:18083"
volumes:
- vol-emqx-data:/opt/emqx/data
- vol-emqx-etc:/opt/emqx/etc
- vol-emqx-log:/opt/emqx/log
srs:
image: ossrs/srs:5
restart: unless-stopped
command: objs/srs -c conf/rtc.conf
env_file:
- ./.env
ports:
- "1935:1935"
- "1985:1985"
- "8080:8080"
- "8000:8000/udp"
networks:
- backend
- srs
core:
build:
context: ./core
image: core:latest
server:
build:
context: ./server
target: ${ENVIRONMENT}
env_file:
- ./.env
ports:
- "3000:3000"
networks:
- emqx-bridge
- backend
depends_on:
- emqx
web:
build:
context: ./web
target: ${ENVIRONMENT}
args:
- OSSRS_HOST=${OSSRS_HOST}
- NEXT_MESSAGE_MAX_WAIT_TIME=${NEXT_MESSAGE_MAX_WAIT_TIME}
- WEBSOCKET_HOST=${WEBSOCKET_HOST}
- WEBSOCKET_PORT=${WEBSOCKET_PORT}
- SERVER_HOSTNAME=${SERVER_HOSTNAME}
env_file:
- ./.env
ports:
- "80:80"
networks:
- backend
- srs