-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
99 lines (93 loc) · 1.98 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "3.9"
services:
#1 Main service
main_service:
image: main_service
build: ./main-service/
environment:
NODE_ENV: production
MODE: docker
PORT: 7000
ports:
- 8000:7000
depends_on:
- registry_service
- rabbitmq_service
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
#2 registry service
registry_service:
image: registry_service
build: ./registry-service/
environment:
NODE_ENV: production
MODE: docker
PORT: 7001
ports:
- 8001:7001
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
#3 Comments service
comments_service:
image: comments_service
build: ./comments-service/
environment:
NODE_ENV: production
MODE: docker
PORT: 7002
ports:
- 8002:7002
depends_on:
- registry_service
- rabbitmq_service
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
#4 users service
users_service:
image: users_service
build: ./users-service/
environment:
NODE_ENV: production
MODE: docker
PORT: 7003
ports:
- 8003:7003
depends_on:
- registry_service
- rabbitmq_service
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
rabbitmq_service:
image: rabbitmq:3.8-management-alpine
container_name: rabbitmq_service
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
- ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
ports:
- 15672:15672
- 5672:5672
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
mongo:
image: mongo
restart: always
volumes:
- ~/.docker-conf/mongo/data/db/:/data/db
- ~/.docker-conf/mongo/data/configdb/:/data/configdb
volumes:
data: null