-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
191 lines (183 loc) · 5.24 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
services:
hmi-frontend:
extends:
file: .docker/docker-compose.service.dev.yml
service: dev-service
environment:
- VITE_STREAMER_SERVER=http://$SERVER_IP:$STREAMER_BACKEND_PORT
- VITE_STREAMER_LOGGER=http://$SERVER_IP:$STREAMER_LOGGER_PORT
- VITE_WATERFALL_BACKEND_URL=http://$SERVER_IP:$WATERFALL_BACKEND_PORT
- VITE_WATERFALL_STREAMER_URL=http://$SERVER_IP:$WATERFALL_STREAMER_PORT
- VITE_3D_GAME_SERVER=http://localhost:$GAME_PORT
- VITE_MAPS_SERVER_URL=$MAPS_SERVER_URL
build:
args:
ServiceName: hmi-frontend
develop:
watch:
- action: sync
path: ./packages/hmi-frontend/src
target: /app/packages/service/src
- action: sync+restart
path: ./packages/hmi-frontend/.env
target: /app/packages/service/.env
- action: rebuild
path: ./packages/hmi-frontend/package.json
target: /app/packages/service/package.json
ports:
- "$HMI_FRONTEND_PORT:80"
game-server:
environment:
- MONGO_URI=$MONGO_URI
container_name: hmi-game-server
build:
dockerfile: .docker/Dockerfile.game-server
develop:
watch:
- action: sync
path: ./packages/game-server/src
target: /app/packages/service/src
- action: sync+restart
path: ./packages/game-server/.env
target: /app/packages/service/.env
- action: rebuild
path: ./packages/game-server/package.json
target: /app/packages/service/package.json
ports:
- "$GAME_PORT:80"
depends_on:
- hmi-mongo-db
networks:
- hmi_dev_network
video-streamer:
build:
dockerfile: .docker/Dockerfile.streamer
context: .
args:
url: https://drive.google.com/file/d/1r-zZ05GueeKXs-vGYsppoiXQ4lWaIJE8/view
ports:
- "$STREAMER_BACKEND_PORT:80"
streamer-logger:
extends:
file: .docker/docker-compose.service.dev.yml
service: dev-service
environment:
- PORT=$STREAMER_LOGGER_PORT
- MONGO_URI=$MONGO_URI
build:
args:
ServiceName: streamer-logger
develop:
watch:
- action: sync
path: ./packages/streamer-logger/src
target: /app/packages/service/src
- action: sync+restart
path: ./packages/streamer-logger/.env
target: /app/packages/service/.env
- action: rebuild
path: ./packages/streamer-logger/package.json
target: /app/packages/service/package.json
ports:
- "$STREAMER_LOGGER_PORT:80"
depends_on:
- hmi-mongo-db
waterfall-backend:
extends:
file: .docker/docker-compose.service.dev.yml
service: dev-service
environment:
RABBITMQ_HOST: hmi-rabbitmq
RABBITMQ_USER: $RABBITMQ_USER
RABBITMQ_PASS: $RABBITMQ_PASS
WATERFALL_QUEUE: $WATERFALL_QUEUE
WATERFALL_DB: $WATERFALL_DB
MONGO_URI: $MONGO_URI
FRONTEND_URL: http://$FRONTEND_IP:$HMI_FRONTEND_PORT
build:
args:
ServiceName: waterfall-backend
develop:
watch:
- action: sync
path: ./packages/waterfall-backend/src
target: /app/packages/service/src
- action: sync+restart
path: ./packages/waterfall-backend/.env
target: /app/packages/service/.env
- action: rebuild
path: ./packages/waterfall-backend/package.json
target: /app/packages/service/package.json
ports:
- "$WATERFALL_BACKEND_PORT:80"
depends_on:
- hmi-rabbitmq
waterfall-streamer:
environment:
RABBITMQ_HOST: hmi-rabbitmq
RABBITMQ_USER: $RABBITMQ_USER
RABBITMQ_PASS: $RABBITMQ_PASS
WATERFALL_QUEUE: $WATERFALL_QUEUE
extends:
file: .docker/docker-compose.service.dev.yml
service: dev-service
build:
args:
ServiceName: waterfall-streamer
develop:
watch:
- action: sync
path: ./packages/waterfall-streamer/src
target: /app/packages/service/src
- action: sync+restart
path: ./packages/waterfall-streamer/.env
target: /app/packages/service/.env
- action: rebuild
path: ./packages/waterfall-streamer/package.json
target: /app/packages/service/package.json
ports:
- "$WATERFALL_STREAMER_PORT:80"
depends_on:
- hmi-rabbitmq
hmi-mongo-db:
image: mongo:latest
container_name: hmi-mongo-db
ports:
- "27017:27017"
volumes:
- ~/db:/data/db
networks:
- hmi_dev_network
mongoexpress:
image: mongo-express
environment:
ME_CONFIG_MONGODB_SERVER: hmi-mongo-db
ME_CONFIG_MONGODB_URL: hmi-mongo-db:27017/
restart: always
ports:
- "8081:8081"
depends_on:
- hmi-mongo-db
networks:
- hmi_dev_network
hmi-rabbitmq:
image: rabbitmq:management
container_name: hmi-rabbitmq
environment:
RABBITMQ_DEFAULT_USER: $RABBITMQ_USER
RABBITMQ_DEFAULT_PASS: $RABBITMQ_PASS
restart: always
ports:
- "15671:15671"
- "15672:15672"
- "15691:15691"
- "15692:15692"
- "25672:25672"
- "4369:4369"
- "5671:5671"
- "5672:5672"
networks:
- hmi_dev_network
networks:
hmi_dev_network:
driver: bridge