-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (47 loc) · 1.02 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
version: '2'
services:
backend:
build:
context: .
dockerfile: ./backend/Dockerfile
command: ["./wait-for-it.sh", "amqp://rabbit", "--", "nodemon", "--debug=5858"]
ports:
- "8020:8020"
- "5858:5858"
- "3500:3500"
volumes:
- ./backend:/backend
- /backend/node_modules
depends_on:
- mongo
- rabbit
links:
- mongo
- rabbit
environment:
- APP_PORT=8020
- SOCKET_PORT=3500
- MONGO_URL=mongodb://mongo:27017/test_db
- RABBIT_URL=amqp://rabbit
frontend:
build:
context: .
dockerfile: ./frontend/Dockerfile
ports:
- "8050:8050"
volumes:
- ./frontend:/frontend
- /frontend/node_modules
depends_on:
- backend
environment:
- APP_PORT=8050
- API_URL=http://localhost:8020
- SOCKET_URL=ws://localhost:3500
mongo:
image: "mongo:latest"
ports:
- "27017:27017"
command: "--smallfiles" #--logpath=/dev/null
rabbit:
image: rabbitmq:latest