-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 947 Bytes
/
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
version: '3'
services:
rabbitmq:
image: "rabbitmq:3-management"
ports:
- "5671:5671"
- "5672:5672"
- "25672:25672"
- "15671:15671"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_PASS: guest
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_VHOST: vhost
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 30s
timeout: 10s
retries: 5
database:
build: ./db
ports:
- 27017:27017
server:
build: ./server
ports:
- "8080:8080"
volumes:
- ./server/:/usr/src/app
- /usr/src/app/node_modules
links:
- rabbitmq
- database
restart: always
depends_on:
- "database"
- "rabbitmq"
client:
image: ambientum/node:9
volumes:
- ./web:/var/www/app/
command: bash -c "yarn && npm run dev"
ports:
- 3000:3000
depends_on:
- "server"