forked from hashgraph/guardian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-aws.yml
187 lines (173 loc) · 3.97 KB
/
docker-compose-aws.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
version: "3.8"
services:
mongo:
image: mongo:6.0.3
command: "--setParameter allowDiskUseByDefault=true"
restart: always
expose:
- 27017
mongo-express:
image: mongo-express:1.0.0-alpha.4
expose:
- 8081
environment:
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_SITE_BASEURL: /mongo-admin
depends_on:
- mongo
ipfs-node:
image: ipfs/kubo:v0.22.0
ports:
- "5001:5001"
- "4001:4001"
- "8080:8080"
volumes:
- ./runtime-data/ipfs/staging:/export:rw
- ./runtime-data/ipfs/data:/data/ipfs:rw
message-broker:
image: nats:2.9.8
expose:
- 4222
ports:
- '8222:8222'
command: '--http_port 8222'
logger-service:
build:
context: .
dockerfile: ./logger-service/Dockerfile
env_file:
- ./logger-service/.env.docker
depends_on:
- message-broker
notification-service:
build:
context: .
dockerfile: ./notification-service/Dockerfile
env_file:
- ./configs/.env.${GUARDIAN_ENV}.guardian.system
depends_on:
- message-broker
worker-service-1:
build:
context: .
dockerfile: ./worker-service/Dockerfile
depends_on:
ipfs-node:
condition: service_healthy
auth-service:
condition: service_started
env_file:
- ./worker-service/.env.docker
environment:
- SERVICE_CHANNEL="worker.1"
- SECRET_MANAGER=${SECRET_MANAGER}
volumes:
- ./worker-service/tls:/usr/local/worker-service/tls:ro
worker-service-2:
build:
context: .
dockerfile: ./worker-service/Dockerfile
depends_on:
ipfs-node:
condition: service_healthy
auth-service:
condition: service_started
env_file:
- ./worker-service/.env.docker
environment:
- SERVICE_CHANNEL="worker.2"
- SECRET_MANAGER=${SECRET_MANAGER}
volumes:
- ./worker-service/tls:/usr/local/worker-service/tls:ro
auth-service:
build:
context: .
dockerfile: ./auth-service/Dockerfile
environment:
- SECRET_MANAGER=${SECRET_MANAGER}
env_file:
- ./auth-service/.env.docker
volumes:
- ./auth-service/tls:/usr/local/auth-service/tls:ro
depends_on:
- mongo
- message-broker
- logger-service
api-gateway:
build:
context: .
dockerfile: ./api-gateway/Dockerfile
expose:
- 3002
env_file:
- ./api-gateway/.env.docker
depends_on:
- mongo
- message-broker
- guardian-service
- auth-service
- logger-service
policy-service:
build:
context: .
dockerfile: ./policy-service/Dockerfile
environment:
- SECRET_MANAGER=${SECRET_MANAGER}
env_file:
- ./policy-service/.env.docker
volumes:
- ./policy-service/tls:/usr/local/policy-service/tls:ro
depends_on:
- mongo
- message-broker
- auth-service
- logger-service
guardian-service:
build:
context: .
dockerfile: ./guardian-service/Dockerfile
environment:
- SECRET_MANAGER=${SECRET_MANAGER}
env_file:
- ./guardian-service/.env.docker
volumes:
- ./guardian-service/tls:/usr/local/guardian-service/tls:ro
depends_on:
- mongo
- message-broker
- auth-service
- logger-service
- worker-service-1
- worker-service-2
- policy-service
mrv-sender:
build:
context: .
dockerfile: ./mrv-sender/Dockerfile
expose:
- 3005
topic-viewer:
build:
context: .
dockerfile: ./topic-viewer/Dockerfile
expose:
- 3006
web-proxy:
build:
context: .
dockerfile: ./web-proxy/Dockerfile
ports:
- "3000:80"
depends_on:
- guardian-service
- auth-service
- api-gateway
- mrv-sender
- mongo-express
volumes:
mongo:
# volume-guardian-service:
# volume-ui-service:
# volume-mrv-sender:
# volume-message-broker: