-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
65 lines (64 loc) · 1.23 KB
/
docker-compose.yaml
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
version: '3'
services:
rabbitmq:
image: rabbitmq
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
mongo:
image: mongo
ports:
- "27017:27017"
volumes:
- mongodata:/data/db
mongo-express:
image: mongo-express
ports:
- "8081:8081"
depends_on:
- mongo
restart: always # fixes MongoNetworkError when mongodb is not ready when mongo-express starts
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
nginx:
build: './etc/nginx'
container_name: nginx
ports:
- "80:80"
restart: always
volumes:
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
user-service:
build: './user_service'
ports:
- "3000:3000"
depends_on:
- mongo
- rabbitmq
- nginx
email-service:
build: './email_service'
ports:
- "4000:4000"
restart: always
depends_on:
- rabbitmq
- nginx
content-service:
build: './content_service'
ports:
- "5000:5000"
depends_on:
- mongo
- nginx
interaction-service:
build: './user_interaction_service'
ports:
- "6000:6000"
depends_on:
- mongo
- nginx
volumes:
mongodata:
driver: local