forked from opencrvs/opencrvs-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
148 lines (148 loc) · 4.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
148 lines (148 loc) · 4.61 KB
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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# OpenCRVS is also distributed under the terms of the Civil Registration
# & Healthcare Disclaimer located at http://opencrvs.org/license.
#
# Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
services:
base:
image: ghcr.io/opencrvs/ocrvs-base:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/Dockerfile.base
deploy:
replicas: 0
client:
image: ghcr.io/opencrvs/ocrvs-client:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/client/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- COUNTRY_CONFIG_URL_INTERNAL=http://countryconfig:3040
- LOGIN_URL=http://login:3020
- AUTH_URL_INTERNAL=http://auth:4040
- GATEWAY_URL_INTERNAL=http://gateway:7070
login:
image: ghcr.io/opencrvs/ocrvs-login:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/login/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- COUNTRY_CONFIG_URL_INTERNAL=http://countryconfig:3040
- CLIENT_APP_URL=http://register:3000
- AUTH_URL_INTERNAL=http://auth:4040
- GATEWAY_URL_INTERNAL=http://gateway:7070
gateway:
image: ghcr.io/opencrvs/ocrvs-gateway:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/gateway/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- HOST=0.0.0.0
- REDIS_HOST=redis
- CONFIG_SMS_CODE_EXPIRY_SECONDS=600
- CONFIG_TOKEN_EXPIRY_SECONDS=604800
- NODE_ENV=development
- EVENTS_URL=http://events:5555/
- AUTH_URL=http://auth:4040
- COUNTRY_CONFIG_URL=http://countryconfig:3040
- CHECK_INVALID_TOKEN=true
- DOCUMENTS_URL=http://documents:9050
events:
image: ghcr.io/opencrvs/ocrvs-events:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/events/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- ES_URL=http://elasticsearch:9200
- COUNTRY_CONFIG_URL=http://countryconfig:3040
- DOCUMENTS_URL=http://documents:9050
- AUTH_URL=http://auth:4040
auth:
image: ghcr.io/opencrvs/ocrvs-auth:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/auth/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- REDIS_HOST=redis
- EVENTS_URL=http://events:5555/
- CONFIG_TOKEN_EXPIRY_SECONDS=604800
- CONFIG_SMS_CODE_EXPIRY_SECONDS=600
- COUNTRY_CONFIG_URL_INTERNAL=http://countryconfig:3040
migration:
image: ghcr.io/opencrvs/ocrvs-migration:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/migration/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- WAIT_HOSTS=postgres:5432
documents:
image: ghcr.io/opencrvs/ocrvs-documents:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/documents/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- NODE_ENV=development
- COUNTRY_CONFIG_URL=http://countryconfig:3040
data-seeder:
image: ghcr.io/opencrvs/ocrvs-data-seeder:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/data-seeder/Dockerfile
depends_on:
- base
deploy:
replicas: 0
environment:
- EVENTS_URL=http://events:5555/
- AUTH_URL=http://auth:4040/
# testland is the reference country config, merged into core as packages/testland.
# Listing it here makes it auto-join the ghcr image matrix in
# build-images-from-branch.yml -> ghcr.io/opencrvs/ocrvs-testland:<tag>.
# Its companion assets image (ghcr.io/opencrvs/ocrvs-testland:<tag>-assets,
# built from packages/testland/Dockerfile.assets) is published by a dedicated
# step in that workflow. Only the top-level docker-compose.yml is consumed by
# the image matrix; local dev runs countryconfig from docker-compose.dev.yml.
testland:
image: ghcr.io/opencrvs/ocrvs-testland:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/testland/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- NODE_ENV=production