-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
executable file
·224 lines (212 loc) · 7.58 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
214
215
216
217
218
219
220
221
222
223
224
version: "3.2"
services:
# Internal services
gateway:
build:
context: services/gateway
dockerfile: Dockerfile.dev
volumes:
- ./var/certs:/certs
ports:
- "${PORTS_GATEWAY_HTTPS:-443}:443"
- "${PORTS_GATEWAY:-8888}:8080"
restart: unless-stopped
depends_on:
- tasks-api
- model-api
- madoc-ts
- config-service
- storage-api
- okra
- search
links:
- tasks-api
- model-api
- madoc-ts
- config-service
- storage-api
- okra
- search
madoc-ts-vite:
build:
context: services/madoc-ts
dockerfile: Dockerfile.vite
volumes:
- ./services/madoc-ts/package.json:/home/node/app/package.json:delegated
- ./services/madoc-ts/tailwind.config.js:/home/node/app/tailwind.config.js:delegated
- ./services/madoc-ts/yarn.lock:/home/node/app/yarn.lock:delegated
- ./services/madoc-ts/src:/home/node/app/src
- ./services/madoc-ts/vite:/home/node/app/vite
- ./var/.vite-cache:/home/node/app/node_modules/.vite
- ./var/certs:/certs
ports:
- "3088:3088"
- "3089:3089"
madoc-ts:
tty: true
build:
context: services/madoc-ts
dockerfile: Dockerfile.dev
volumes:
- ./services/madoc-ts/dist:/home/node/app/dist:delegated
- ./services/madoc-ts/src:/home/node/app/src
- ./services/madoc-ts/package.json:/home/node/app/package.json:delegated
- ./services/madoc-ts/yarn.lock:/home/node/app/yarn.lock:delegated
- ./services/madoc-ts/migrations:/home/node/app/migrations:delegated
- ./services/madoc-ts/schemas:/home/node/app/schemas:delegated
- ./services/madoc-ts/ecosystem.config.cjs:/home/node/app/ecosystem.config.cjs
- ./services/madoc-ts/vite:/home/node/app/vite:delegated
- ./services/madoc-ts/entrypoint:/home/node/app/entrypoint:delegated
- ./services/madoc-ts/config.json:/home/node/app/config.json
- ./services/madoc-ts/service-jwts:/home/node/app/service-jwts
- ./services/madoc-ts/themes:/home/node/app/themes
- ./services/madoc-ts/translations:/home/node/app/translations
- ./services/madoc-ts/npm:/home/node/app/npm
- ./var/certs:/home/node/app/openssl-certs
- ./var/jwt:/home/node/app/service-jwt-responses
- ./var/files:/home/node/app/files
environment:
- DATABASE_HOST=shared-postgres
- DATABASE_NAME=${POSTGRES_DB}
- DATABASE_PORT=${POSTGRES_PORT}
- DATABASE_USER=${POSTGRES_MADOC_TS_USER}
- DATABASE_SCHEMA=${POSTGRES_MADOC_TS_SCHEMA}
- DATABASE_PASSWORD=${POSTGRES_MADOC_TS_PASSWORD}
- REDIS_HOST=gateway-redis
- API_GATEWAY=http://gateway:8080
- GATEWAY_HOST=${GATEWAY_HOST}
- STORAGE_FILE_DIRECTORY=/home/node/app/files
- MADOC_INSTALLATION_CODE=${MADOC_INSTALLATION_CODE}
- MIGRATE=true
- NODE_ENV=development
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_SECURITY=${SMTP_SECURITY}
- SMTP_USER=${SMTP_USER}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- MAIL_FROM_USER=${MAIL_FROM_USER}
ports:
- "127.0.0.1:${PORTS_MADOC_TS_DEBUGGER:-9230}:9230"
links:
- shared-postgres
- madoc-ts-vite
tasks-api:
tty: true
image: ghcr.io/digirati-co-uk/tasks-api:latest
platform: linux/amd64
environment:
- SERVER_PORT=3000
- DATABASE_HOST=shared-postgres
- DATABASE_NAME=${POSTGRES_DB}
- DATABASE_PORT=${POSTGRES_PORT}
- DATABASE_USER=${POSTGRES_TASKS_API_USER}
- DATABASE_SCHEMA=${POSTGRES_TASKS_API_SCHEMA}
- DATABASE_PASSWORD=${POSTGRES_TASKS_API_PASSWORD}
- QUEUE_LIST=${TASKS_QUEUE_LIST}
- REDIS_HOST=gateway-redis
links:
- shared-postgres
- gateway-redis
model-api:
tty: true
image: digirati/capture-models:latest
platform: linux/amd64
environment:
- SERVER_PORT=3000
- DATABASE_HOST=shared-postgres
- DATABASE_NAME=${POSTGRES_DB}
- DATABASE_PORT=${POSTGRES_PORT}
- DATABASE_USER=${POSTGRES_MODELS_API_USER}
- DATABASE_SCHEMA=${POSTGRES_MODELS_API_SCHEMA}
- DATABASE_PASSWORD=${POSTGRES_MODELS_API_PASSWORD}
links:
- shared-postgres
shared-postgres:
build:
context: services/shared-postgres
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_MADOC_TS_USER=${POSTGRES_MADOC_TS_USER}
- POSTGRES_MADOC_TS_SCHEMA=${POSTGRES_MADOC_TS_SCHEMA}
- POSTGRES_MADOC_TS_PASSWORD=${POSTGRES_MADOC_TS_PASSWORD}
- POSTGRES_TASKS_API_USER=${POSTGRES_TASKS_API_USER}
- POSTGRES_TASKS_API_SCHEMA=${POSTGRES_TASKS_API_SCHEMA}
- POSTGRES_TASKS_API_PASSWORD=${POSTGRES_TASKS_API_PASSWORD}
- POSTGRES_MODELS_API_USER=${POSTGRES_MODELS_API_USER}
- POSTGRES_MODELS_API_SCHEMA=${POSTGRES_MODELS_API_SCHEMA}
- POSTGRES_MODELS_API_PASSWORD=${POSTGRES_MODELS_API_PASSWORD}
- POSTGRES_CONFIG_SERVICE_USER=${POSTGRES_CONFIG_SERVICE_USER}
- POSTGRES_CONFIG_SERVICE_SCHEMA=${POSTGRES_CONFIG_SERVICE_SCHEMA}
- POSTGRES_CONFIG_SERVICE_PASSWORD=${POSTGRES_CONFIG_SERVICE_PASSWORD}
- POSTGRES_SEARCH_API_USER=${POSTGRES_SEARCH_API_USER}
- POSTGRES_SEARCH_API_SCHEMA=${POSTGRES_SEARCH_API_SCHEMA}
- POSTGRES_SEARCH_API_PASSWORD=${POSTGRES_SEARCH_API_PASSWORD}
ports:
- "${PORTS_SHARED_POSTGRES:-5400}:5432"
volumes:
- ./var/shared-database:/var/lib/postgresql/data
gateway-redis:
image: redis:5-alpine
config-service:
image: digirati/madoc_config_service_django:175410fc5b7dbef4cc259686564fbedeb60c8789
platform: linux/amd64
environment:
- USE_DOCKER=yes
- IPYTHONDIR=/app/.ipython
- MIGRATE=True
- LOAD=False
- DJANGO_DEBUG=False
- WAITRESS=False
- POSTGRES_HOST=shared-postgres
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_USER=${POSTGRES_CONFIG_SERVICE_USER}
- POSTGRES_PASSWORD=${POSTGRES_CONFIG_SERVICE_PASSWORD}
- POSTGRES_SCHEMA=${POSTGRES_CONFIG_SERVICE_SCHEMA}
- POSTGRES_DB=${POSTGRES_DB}
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@shared-postgres:${POSTGRES_PORT}/${POSTGRES_DB}
links:
- shared-postgres
volumes:
- ./configuration/schemas:/app/configurator/schemas
- ./configuration/defaults:/app/configurator/default_config
storage-api:
tty: true
image: ghcr.io/digirati-co-uk/storage-api:main
platform: linux/amd64
environment:
- GATEWAY_HOST=${GATEWAY_HOST}
volumes:
- ./var/files/storage-api:/home/node/app/files
links:
- shared-postgres
search:
image: ghcr.io/digirati-co-uk/madoc-search-service:247f854b1258e3971907e6912cef2374a1da8474
platform: linux/amd64
# build:
# context: services/search
# dockerfile: Dockerfile
environment:
- BROWSABLE=False
- USE_DOCKER=yes
- IPYTHONDIR=/app/.ipython
- MIGRATE=True
- LOAD=False
- DEBUG=True
- DJANGO_DEBUG=True
- WAITRESS=False
- POSTGRES_HOST=shared-postgres
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_USER=${POSTGRES_SEARCH_API_USER}
- POSTGRES_PASSWORD=${POSTGRES_SEARCH_API_PASSWORD}
- POSTGRES_SCHEMA=${POSTGRES_SEARCH_API_SCHEMA}
- POSTGRES_DB=${POSTGRES_DB}
- DATABASE_URL=postgres://${POSTGRES_SEARCH_API_USER}:${POSTGRES_SEARCH_API_PASSWORD}@shared-postgres:${POSTGRES_PORT}/${POSTGRES_DB}
links:
- shared-postgres
# volumes:
# - ./services/search/search_service:/app
okra:
image: digirati/okra:latest
platform: linux/amd64