-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
205 lines (195 loc) · 5.88 KB
/
docker-compose.yaml
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
version: '3.8'
name: dsb-data
services:
mock-register:
container_name: mock-register
image: consumerdataright/mock-register
ports:
- "7000:7000"
- "7001:7001"
- "7006:7006"
extra_hosts:
- "mock-data-holder:host-gateway"
- "mock-data-recipient:host-gateway"
- "authserver-ui:host-gateway"
- "cdr-auth-server:host-gateway"
- "tls-gateway:host-gateway"
- "mtls-gateway:host-gateway"
environment:
- ASPNETCORE_ENVIRONMENT=Release
healthcheck:
test: wget --no-check-certificate --no-verbose --spider https://localhost:7006/health || exit 1
timeout: 5s
interval: 5s
retries: 50
depends_on:
mssql:
condition: service_healthy
mock-data-recipient:
container_name: mock-data-recipient
image: consumerdatastandardsaustralia/mock-data-recipient:0.2
# build:
# context: .
# dockerfile: dockerfile.mock-data-recipient
ports:
- "9001:9001"
environment:
- ASPNETCORE_ENVIRONMENT=Release
extra_hosts:
- "mock-data-holder:host-gateway"
- "mock-register:host-gateway"
- "authserver-ui:host-gateway"
- "cdr-auth-server:host-gateway"
- "tls-gateway:host-gateway"
- "mtls-gateway:host-gateway"
healthcheck:
test: wget --no-check-certificate --no-verbose --spider https://localhost:9001/health || exit 1
timeout: 5s
interval: 5s
retries: 50
depends_on:
mssql:
condition: service_healthy
cdr-auth-server:
container_name: cdr-auth-server
image: consumerdatastandardsaustralia/cdr-auth-server:0.2
# build:
# context: .
# dockerfile: dockerfile.cdr-auth-server
ports:
- "8001:8001"
- "8080:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Release
extra_hosts:
- "mssql:host-gateway"
- "mock-data-holder:host-gateway"
- "mock-register:host-gateway"
- "mock-data-recipient:host-gateway"
- "authserver-ui:host-gateway"
- "tls-gateway:host-gateway"
- "mtls-gateway:host-gateway"
healthcheck:
test: wget --no-check-certificate --no-verbose --spider https://localhost:8001/health || exit 1
timeout: 5s
interval: 5s
retries: 50
depends_on:
mssql:
condition: service_healthy
authserver-ui:
container_name: authserver-ui
image: consumerdatastandardsaustralia/authserver-ui:0.5
# build:
# context: .
# dockerfile: dockerfile.authserver-ui
ports:
- "3000:3000"
environment:
- ASPNETCORE_ENVIRONMENT=Release
- REACT_APP_DEFAULT_USER_NAME_TEXT=Doe.John
- REACT_APP_CDR_POLICY_LINK=https://cdr-policy
- REACT_APP_CDR_FAQ_LINK=https://www.cdr.gov.au
extra_hosts:
- "mssql:host-gateway"
- "mock-data-holder:host-gateway"
- "mock-register:host-gateway"
- "mock-data-recipient:host-gateway"
- "cdr-auth-server:host-gateway"
- "tls-gateway:host-gateway"
- "mtls-gateway:host-gateway"
tls-gateway:
container_name: tls-gateway
image: consumerdatastandardsaustralia/tls-gateway:0.2
# build:
# context: .
# dockerfile: dockerfile.tlsgateway
extra_hosts:
- "mock-data-recipient:host-gateway"
- "mock-register:host-gateway"
- "mock-data-holder:host-gateway"
- "cdr-auth-server:host-gateway"
- "authserver-ui:host-gateway"
- "mtls-gateway:host-gateway"
ports:
- "8081:8081"
environment:
- ASPNETCORE_ENVIRONMENT=Release
mtls-gateway:
container_name: mtls-gateway
# build:
# context: .
# dockerfile: dockerfile.mtlsgateway
image: consumerdatastandardsaustralia/mtls-gateway:0.2
ports:
- "8082:8082"
extra_hosts:
- "mock-data-recipient:host-gateway"
- "mock-register:host-gateway"
- "mock-data-holder:host-gateway"
- "cdr-auth-server:host-gateway"
- "authserver-ui:host-gateway"
- "tls-gateway:host-gateway"
- "mtls-gateway:host-gateway"
environment:
- ASPNETCORE_ENVIRONMENT=Release
mock-data-holder:
container_name: mock-data-holder
image: consumerdatastandardsaustralia/nodejs-data-holder:0.3
# build:
# context: .
# dockerfile: dockerfile.dsb-test-data-server
restart: unless-stopped
env_file: .env.docker
extra_hosts:
- "mock-data-recipient:host-gateway"
- "mock-register:host-gateway"
- "mock-data-holder:host-gateway"
- "cdr-auth-server:host-gateway"
- "authserver-ui:host-gateway"
- "mongodb:host-gateway"
- "tls-gateway:host-gateway"
- "mtls-gateway:host-gateway"
depends_on:
mssql:
condition: service_healthy
cdr-auth-server:
condition: service_healthy
ports:
- "3005:3005"
mssql:
container_name: mssql
image: consumerdatastandardsaustralia/energy-sql-data
#image: 'mcr.microsoft.com/mssql/server:2019-latest'
ports:
- '1433:1433'
user: root
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=Pa{}w0rd2019
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S . -U sa -P "Pa{}w0rd2019" -Q "SELECT 1" || exit 1
timeout: 10s
interval: 10s
retries: 10
mongodb:
image: mongo:6.0
container_name: mongodb
restart: unless-stopped
env_file: .env.docker
volumes:
- dbdata:/usr/local/var/mongodb
ports:
- "27017:27017"
dsb-data-loader:
# build:
# context: .
# dockerfile: dockerfile.dsb-data-loader
container_name: dsb-data-loader
image: consumerdatastandardsaustralia/dsb-data-loader:0.2
env_file: .env.docker
depends_on:
- mongodb
volumes:
dbdata:
node_modules: