-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
106 lines (106 loc) · 1.79 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
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
version: "3.7"
services:
eventbus:
image: nats-streaming
ports:
- 4222:4222
- 8222:8222
command: [
"-p", "4222",
"-m", "8222",
"-hbi", "5s",
"-hbt", "5s",
"-hbf", "2",
"-SD",
"-cid", "eventbus"
]
networks:
- backend
- integration
posts:
build:
context: .
dockerfile: posts.dockerfile
hostname: posts
expose:
- "4000"
ports:
- 4000:4000
environment:
- "NODE_ENV=production"
depends_on:
- eventbus
networks:
- backend
- integration
comments:
build:
context: .
dockerfile: comments.dockerfile
expose:
- "4001"
ports:
- 4001:4001
environment:
- "NODE_ENV=production"
depends_on:
- eventbus
networks:
- backend
- integration
query:
build:
context: .
dockerfile: query.dockerfile
expose:
- "4002"
ports:
- 4002:4002
environment:
- "NODE_ENV=production"
depends_on:
- eventbus
- posts
- comments
networks:
- backend
- integration
moderation:
build:
context: .
dockerfile: moderation.dockerfile
expose:
- "4003"
ports:
- 4003:4003
environment:
- "NODE_ENV=production"
depends_on:
- eventbus
networks:
- backend
- integration
blogapp:
build:
context: .
dockerfile: blogapp.dockerfile
ports:
- 3000:80
environment:
- "NODE_ENV=production"
depends_on:
- query
- eventbus
networks:
- frontend
- integration
# eventbus:
# image: rabbitmq:3-management
# ports:
# - 7075:15672
# - 5672:5672
# - 25676:25676
networks:
backend:
frontend:
integration: