forked from hashgraph/guardian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
183 lines (174 loc) · 4.57 KB
/
docker-compose-dev.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
version: '3.8'
services:
mongo:
image: mongo:6.0.13
command: "--setParameter allowDiskUseByDefault=true"
restart: always
expose:
- 27017
ports:
- 27017:27017
cache:
image: registry.redict.io/redict
restart: always
expose:
- 6379
ports:
- "6379:6379"
ipfs-node:
image: ipfs/kubo:v0.26.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.24
expose:
- 4222
ports:
- '8222:8222'
- '4222:4222'
- '6222:6222'
command: '--http_port 8222'
dev-tools:
build: .
image: guardian-development
volumes:
- ./:/app
- ~/.npm/:/root/.npm
restart: "no"
command: 'node dev.mjs'
logger-service:
image: guardian-development
depends_on:
- dev-tools
- message-broker
volumes:
- ./:/app
restart: always
command: npm run dev:docker --prefix /app/logger-service
environment:
- MQ_ADDRESS=message-broker
- DB_HOST=mongo
notification-service:
image: guardian-development
depends_on:
- dev-tools
- message-broker
volumes:
- ./:/app
restart: always
command: npm run dev:docker --prefix /app/notification-service
environment:
- MQ_ADDRESS=message-broker
- DB_HOST=mongo
auth-service:
image: guardian-development
restart: always
depends_on:
- dev-tools
- mongo
- message-broker
- logger-service
environment:
- MQ_ADDRESS=message-broker
- DB_HOST=mongo
volumes:
- ./:/app
command: npm run dev:docker --prefix /app/auth-service
api-gateway:
image: guardian-development
restart: always
expose:
- 3002
ports:
- 3002:3002
depends_on:
- dev-tools
- cache
- mongo
- message-broker
- guardian-service
- auth-service
- logger-service
environment:
- MQ_ADDRESS=message-broker
- DB_HOST=mongo
volumes:
- ./:/app
command: npm run dev:docker --prefix /app/api-gateway
topic-viewer:
image: guardian-development
restart: always
expose:
- 3006
ports:
- 3006:3006
depends_on:
- dev-tools
- mongo
- message-broker
- guardian-service
- auth-service
- logger-service
environment:
- MQ_ADDRESS=message-broker
- DB_HOST=mongo
volumes:
- ./:/app
command: npm run dev:docker --prefix /app/topic-viewer
guardian-service:
image: guardian-development
restart: always
depends_on:
- mongo
- message-broker
- auth-service
- logger-service
environment:
- MQ_ADDRESS=message-broker
- DB_HOST=mongo
- OPERATOR_ID=${OPERATOR_ID}
- OPERATOR_KEY=${OPERATOR_KEY}
- INITIALIZATION_TOPIC_ID=${INITIALIZATION_TOPIC_ID}
volumes:
- ./:/app
command: npm run dev:docker --prefix /app/guardian-service
mrv-sender:
image: guardian-development
expose:
- 3005
depends_on:
- dev-tools
volumes:
- ./:/app
command: npm run dev:docker --prefix /app/mrv-sender
front-end:
image: guardian-development
expose:
- 4200
ports:
- 4200:4200
depends_on:
- dev-tools
volumes:
- ./:/app
environment:
- NG_PERSISTENT_BUILD_CACHE=1
- CI=local
command: npm run dev:docker --prefix /app/frontend
web-proxy:
image: nginx:1.23.2
ports:
- '3000:80'
depends_on:
- guardian-service
- auth-service
- api-gateway
- mrv-sender
- front-end
volumes:
- ./web-proxy/configs/local.conf:/etc/nginx/conf.d/default.conf