forked from 1-Platform/one-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
213 lines (199 loc) · 5.37 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
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
version: "3"
services:
httpd:
image: spaship/httpd:latest
restart: always
logging:
driver: none
volumes:
# - ./packages/home-spa/dist:/var/www/html/home
# - ./packages/feedback-spa/dist:/var/www/html/feedback
# - ./packages/notification-spa/dist:/var/www/html/notifications
# - ./packages/search-spa/dist:/var/www/html/search
# - ./packages/user-group-spa/build:/var/www/html/user-groups
# - ./packages/developer-console-spa/build:/var/www/html/console
# - ./packages/lighthouse-spa/dist:/var/www/html/lighthouse
- ./packages/ssi-service/public/index.html:/var/www/html/index.html
- ./packages/ssi-service/dist:/var/www/html/.ssi/nav
- ./packages/ssi-service/dist:/var/www/html/assets
ports:
- 4200:8080
reverse-proxy:
build: ./packages/reverse-proxy-service
command: npm run dev
env_file: ./packages/reverse-proxy-service/.env
environment:
PORT: 8000
COUCHDB_HOST: http://couchdb:5984
COUCHDB_SECRET: couchdbsecret123 # as defined in the couchdb service environment
REDIS_HOST: redis
MONGO_URL: mongodb://mongo:27017/apps-service
volumes:
- ./packages/reverse-proxy-service:/opt/app-root/src
ports:
- 5500:8000
depends_on:
- couchdb
- redis
- mongo
api-gateway:
build: ./packages/api-gateway-service
command: npm run dev
env_file: ./packages/api-gateway-service/.env
environment:
REDIS_SERVICE_HOST: redis
volumes:
- ./packages/api-gateway-service:/usr/src
ports:
- 8080:8080
depends_on:
- apps-service
- feedback-service
- user-group-service
- notifications-service
- search-service
- lighthouse-service
- api-catalog-service
apps-service:
build: ./packages/apps-service
command: npm run dev
env_file: ./packages/apps-service/.env
environment:
MONGO_URL: mongodb://mongo:27017/apps-service
COUCHDB_ENDPOINT: http://couchdb:5984
# COUCHDB_ADMIN_TOKEN: "<add admin token to test couchdb integration>" # Basic <base64 of COUCHDB_USER:COUCHDB_PASSWORD>
volumes:
- ./packages/apps-service:/opt/app-root/src
ports:
- 8081:8080
depends_on:
- mongo
- couchdb
feedback-service:
build: ./packages/feedback-service
command: npm start
env_file: ./packages/feedback-service/.env
environment:
DB_PATH: mongo
REDIS_SERVICE_HOST: redis
volumes:
- ./packages/feedback-service:/app
ports:
- 8082:8080
depends_on:
- mongo
- redis
user-group-service:
build: ./packages/user-group-service
command: npm start
env_file: ./packages/user-group-service/.env
environment:
DB_PATH: mongo
REDIS_SERVICE_HOST: redis
volumes:
- ./packages/user-group-service:/app
ports:
- 8083:8080
depends_on:
- mongo
- redis
notifications-service:
build: ./packages/notifications-service
command: npm run dev
env_file: ./packages/notifications-service/.env
environment:
MONGO_URL: mongodb://mongo:27017/notifications
REDIS_HOST: redis
REDIS_PORT: 6379
volumes:
- type: bind
source: ./packages/notifications-service
target: /usr/src/app
ports:
- 8084:8080
depends_on:
- mongo
- redis
search-service:
build: ./packages/search-service
command: npm run dev
env_file: ./packages/search-service/.env
environment:
DB_PATH: mongo
REDIS_SERVICE_HOST: redis
volumes:
- ./packages/search-service:/usr/src
ports:
- 8085:8080
depends_on:
- mongo
- redis
lighthouse-service:
build: ./packages/lighthouse-service
command: npm start
env_file: ./packages/lighthouse-service/.env
environment:
DB_PATH: mongo
REDIS_SERVICE_HOST: redis
volumes:
- ./packages/lighthouse-service:/app
ports:
- 8086:8080
depends_on:
- mongo
- redis
api-catalog-service:
build: ./packages/api-catalog-service
command: npm start
env_file: ./packages/api-catalog-service/.env
environment:
DB_PATH: mongo
REDIS_SERVICE_HOST: redis
volumes:
- ./packages/api-catalog-service:/app
ports:
- 8087:8080
depends_on:
- mongo
- redis
analytics-service:
build: ./packages/analytics-service
command: npm start
env_file: ./packages/analytics-service/.env
environment:
MONGO_URI: "mongodb://mongo/analytics"
volumes:
- ./packages/feedback-service:/app
ports:
- 8088:8080
depends_on:
- mongo
mongo:
image: mongo:4
restart: always
volumes:
- ./tmp/db:/data/db
ports:
- 37017:27017
couchdb:
image: couchdb:3
environment:
COUCHDB_USER: couchdb
# since this is a local development instance, it should be okay to keep the defaut values,
# but the password can be changed from the couchdb fauxton ui.
# Just make sure to update the password in the dependent service .env's
COUCHDB_PASSWORD: test123
COUCHDB_SECRET: couchdbsecret123
volumes:
- couch_data:/opt/couchdb/data
- couch_config:/opt/couchdb/etc/local.d
ports:
- 5984:5984
redis:
image: redis:alpine
ports:
- 6379:6379
restart: on-failure
volumes:
couch_data:
couch_config: