-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose-dev.yml
216 lines (203 loc) · 7.69 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
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
version: '3.6'
services:
keycloak:
container_name: keycloak
# command: ["-Djboss.http.port=8180"]
ports:
- '8180:8080'
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- DB_VENDOR=h2
- KEYCLOAK_IMPORT=/resources/ClientFhirServerRealm.json
volumes:
- keycloak-data:/opt/jboss/keycloak/standalone/data/
- '../test-ehr/src/main/resources/ClientFhirServerRealm.json:/resources/ClientFhirServerRealm.json'
image: hkong2/keycloak
# Create crd container
test-ehr: # Name of our service
container_name: pas_dev_test-ehr
ports: # Port binding to host from docker container
- '8080:8080' # Bind port 3000 of host to 3000 of container
- "8081:8081"
environment:
- DOCKER_PROFILE=true
build:
context: ../test-ehr
dockerfile: Dockerfile.dev
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- pas_dev_test-ehr-sync:/test-ehr:nocopy # nocopy is important
- pas_dev_test-ehr-gradle:/test-ehr/.gradle
- pas_dev_test-ehr-build:/test-ehr/build
- pas_dev_test-ehr-target:/test-ehr/target
- pas_dev_test-ehr-logs:/test-ehr/logs
# Create crd container
crd: # Name of our service
build:
context: ../CRD
dockerfile: Dockerfile.dev
container_name: pas_dev_crd
ports: # Port binding to host from docker container
- "8090:8090" # Bind port 3000 of host to 3000 of container
- "8091:8091"
environment:
VSAC_API_KEY: ${VSAC_API_KEY}
volumes:
- pas_dev_crd-sync:/CRD:nocopy # nocopy is important
- pas_dev_crd-logs:/CRD/logs
- pas_dev_crd-gradle:/CRD/.gradle
- pas_dev_crd-server-gradle:/CRD/server/.gradle
- pas_dev_crd-server-build:/CRD/server/build
- pas_dev_crd-server-ValueSetCache:/CRD/server/ValueSetCache
- pas_dev_crd-operations-build:/CRD/operations/build
- pas_dev_crd-resources-build:/CRD/resources/build
# Create crd container
crd-request-generator: # Name of our service
build:
context: ../crd-request-generator
dockerfile: Dockerfile.dev
container_name: pas_dev_crd-request-generator
ports: # Port binding to host from docker container
- "3000:3000" # Bind port 3000 of host to 3000 of container
- "3001:3001"
volumes:
- pas_dev_crd-request-generator-sync:/home/node/app/crd-request-generator:nocopy # nocopy is important
- pas_dev_crd-request-generator-node-modules:/home/node/app/crd-request-generator/node_modules
- pas_dev_crd-request-generator-databaseData:/home/node/app/crd-request-generator/databaseData
- pas_dev_crd-request-generator-build:/home/node/app/crd-request-generator/build
- pas_dev_crd-request-generator-logs:/home/node/app/crd-request-generator/logs
# Create crd container
dtr: # Name of our service
build:
context: ../dtr
dockerfile: Dockerfile.dev
container_name: pas_dev_dtr
ports: # Port binding to host from docker container
- "3005:3005" # Bind port 3000 of host to 3000 of container
- "3006:3006"
volumes:
- pas_dev_dtr-sync:/home/node/app/dtr:nocopy # nocopy is important
- pas_dev_dtr-node-modules:/home/node/app/dtr/node_modules
- pas_dev_dtr-databaseData:/home/node/app/dtr/databaseData
- pas_dev_dtr-logs:/home/node/app/dtr/logs
# # Create fhir-x12 converter container
# fhir-x12: # Name of our service
# build:
# context: ../fhir-x12
# dockerfile: Dockerfile.dev
# container_name: pas_dev_fhir-x12
# ports: # Port binding to host from docker container
# - "8085:8085" # Bind port 3000 of host to 3000 of container
# - "8086:8086"
# volumes:
# - pas_dev_fhir-x12-sync:/usr/src/app/fhir-x12:nocopy # nocopy is important
# - pas_dev_fhir-x12-node-modules:/usr/src/app/fhir-x12/node_modules
# - pas_dev_fhir-x12-build:/usr/src/app/fhir-x12/build
# - pas_dev_fhir-x12-databaseData:/usr/src/app/fhir-x12/databaseData
# - pas_dev_fhir-x12-logs:/usr/src/app/fhir-x12/logs
# environment:
# PORT: 8085
# ADMIN_TOKEN: fhir-x12-secret
# # Create frontend fhir-x12 frontend converter container
# fhir-x12-frontend: # Name of our service
# build:
# context: ../fhir-x12-frontend
# dockerfile: Dockerfile.dev
# container_name: pas_dev_fhir-x12-frontend
# ports: # Port binding to host from docker container
# - "3015:3015" # Bind port 3000 of host to 3000 of container
# volumes:
# - pas_dev_fhir-x12-frontend-sync:/usr/src/app/fhir-x12-frontend:nocopy # nocopy is important
# - pas_dev_fhir-x12-frontend-node-modules:/usr/src/app/fhir-x12-frontend/node_modules
# - pas_dev_fhir-x12-frontend-build:/usr/src/app/fhir-x12-frontend/build
# - pas_dev_fhir-x12-frontend-logs:/usr/src/app/fhir-x12-frontend/logs
# environment:
# PORT: 3015
# ADMIN_TOKEN: fhir-x12-secret
# BACKEND_URL: http://localhost:8085/
# Create crd container
prior-auth: # Name of our service
build:
context: '.'
dockerfile: Dockerfile.dev
container_name: pas_dev_prior-auth
environment:
- TOKEN_BASE_URI=http://localhost:9015
ports: # Port binding to host from docker container
- "9015:9015" # Bind port 3000 of host to 3000 of container
- "9016:9016"
volumes:
- pas_dev_prior-auth-sync:/prior-auth:nocopy # nocopy is important
- pas_dev_prior-auth-gradle:/prior-auth/.gradle
- pas_dev_prior-auth-databaseData:/prior-auth/databaseData
- pas_dev_prior-auth-build:/prior-auth/build
- pas_dev_prior-auth-logs:/prior-auth/logs
# Create crd container
prior-auth-client: # Name of our service
build:
context: '../prior-auth-client'
dockerfile: Dockerfile.dev
container_name: pas_dev_prior-auth-client
ports: # Port binding to host from docker container
- "9090:9090" # Bind port 3000 of host to 3000 of container
- "9091:9091"
volumes:
- pas_dev_prior-auth-sync:/prior-auth:nocopy # nocopy is important
- pas_dev_prior-auth-client-gradle:/prior-auth-client/.gradle
- pas_dev_prior-auth-client-build:/prior-auth-client/build
- pas_dev_prior-auth-client-logs:/prior-auth-client/logs
volumes:
keycloak-data:
pas_dev_test-ehr-sync:
external: true
pas_dev_crd-sync:
external: true
pas_dev_crd-request-generator-sync:
external: true
pas_dev_dtr-sync:
external: true
pas_dev_prior-auth-sync:
external: true
pas_dev_prior-auth-client-sync:
external: true
# pas_dev_fhir-x12-sync:
# external: true
# pas_dev_fhir-x12-frontend-sync:
# external: true
pas_dev_keycloak-data:
pas_dev_test-ehr-gradle:
pas_dev_test-ehr-bin:
pas_dev_test-ehr-build:
pas_dev_test-ehr-target:
pas_dev_test-ehr-logs:
pas_dev_crd-logs:
pas_dev_crd-gradle:
pas_dev_crd-server-gradle:
pas_dev_crd-server-build:
pas_dev_crd-server-bin:
pas_dev_crd-server-ValueSetCache:
pas_dev_crd-operations-build:
pas_dev_crd-resources-build:
pas_dev_crd-request-generator-node-modules:
pas_dev_crd-request-generator-databaseData:
pas_dev_crd-request-generator-build:
pas_dev_crd-request-generator-logs:
pas_dev_dtr-node-modules:
pas_dev_dtr-databaseData:
pas_dev_dtr-logs:
pas_dev_prior-auth-gradle:
pas_dev_prior-auth-databaseData:
pas_dev_prior-auth-build:
pas_dev_prior-auth-logs:
pas_dev_prior-auth-client-gradle:
pas_dev_prior-auth-client-build:
pas_dev_prior-auth-client-logs:
# pas_dev_fhir-x12-node-modules:
# pas_dev_fhir-x12-build:
# pas_dev_fhir-x12-databaseData:
# pas_dev_fhir-x12-logs:
# pas_dev_fhir-x12-frontend-node-modules:
# pas_dev_fhir-x12-frontend-build:
# pas_dev_fhir-x12-frontend-logs: