-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-nginx.yml
167 lines (167 loc) · 5 KB
/
docker-compose-nginx.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
services:
lb:
image: &nginx-img nginx:1.25.1
depends_on:
- pep-left
- pep-right
- admin-left
- admin-right
networks:
demo:
ipv4_address: 172.90.10.2
ports:
- 80:80
- 443:443
volumes:
- "./docker-compose/lb/config/nginx.conf:/etc/nginx/nginx.conf"
- "./docker-compose/lb/tls:/etc/nginx/ssl:ro"
- "./docker-compose/lb/socket:/tmp/sockets"
pep-left:
image: *nginx-img
depends_on:
- demo-left
- node-left
- pip-left
networks:
demo:
ipv4_address: 172.90.10.11
volumes:
- "./docker-compose/left/config/pep/nginx.conf:/etc/nginx/nginx.conf"
- "./docker-compose/lb/socket:/tmp/sockets"
- "./docker-compose/left/config/pep/oauth2.js:/etc/nginx/js/oauth2.js"
pep-right:
image: *nginx-img
depends_on:
- demo-right
- node-right
- pip-right
networks:
demo:
ipv4_address: 172.90.10.12
volumes:
- "./docker-compose/right/config/pep/nginx.conf:/etc/nginx/nginx.conf"
- "./docker-compose/lb/socket:/tmp/sockets"
- "./docker-compose/right/config/pep/oauth2.js:/etc/nginx/js/oauth2.js"
pip-left: &pip
image: nutsfoundation/nuts-pxp:main
environment:
NUTS_CONFIGFILE: /nuts/config.yaml
ports:
- 8080:8080
networks:
demo:
ipv4_address: 172.90.10.13
volumes:
- "./docker-compose/left/data/nutspxp:/nuts/data"
- "./docker-compose/left/config/nutspxp/policies:/nuts/policies"
- "./docker-compose/left/config/nutspxp/config.yaml:/nuts/config.yaml"
pip-right:
<<: *pip
ports:
- 8081:8080
networks:
demo:
ipv4_address: 172.90.10.14
volumes:
- "./docker-compose/right/data/nutspxp:/nuts/data"
- "./docker-compose/right/config/nutspxp/policies:/nuts/policies"
- "./docker-compose/left/config/nutspxp/config.yaml:/nuts/config.yaml"
node-left: &node
image: nutsfoundation/nuts-node:master
environment:
NUTS_CONFIGFILE: /nuts/nuts.yaml
extra_hosts:
- "left.local:172.90.10.2"
- "node.left.local:172.90.10.2"
- "right.local:172.90.10.2"
- "node.right.local:172.90.10.2"
networks:
demo:
ipv4_address: 172.90.10.3
volumes:
- "./docker-compose/left/config/node/nuts.yaml:/nuts/nuts.yaml"
- "./docker-compose/left/data/node:/nuts/data"
- "./docker-compose/left/config/node/policies:/nuts/policies"
- "./docker-compose/left/config/node/discovery:/nuts/discovery"
- "./docker-compose/lb/tls/ca.pem:/etc/ssl/certs/demo_ca.pem"
node-right:
<<: *node
networks:
demo:
ipv4_address: 172.90.10.4
volumes:
- "./docker-compose/right/config/node/nuts.yaml:/nuts/nuts.yaml"
- "./docker-compose/right/data/node:/nuts/data"
- "./docker-compose/right/config/node/policies:/nuts/policies"
- "./docker-compose/right/config/node/discovery:/nuts/discovery"
- "./docker-compose/lb/tls/ca.pem:/etc/ssl/certs/demo_ca.pem"
admin-left: &admin
image: nutsfoundation/nuts-admin:main
environment:
NUTS_NODE_ADDRESS: http://node-left:8081
networks:
demo:
ipv4_address: 172.90.10.5
admin-right:
<<: *admin
environment:
NUTS_NODE_ADDRESS: http://node-right:8081
networks:
demo:
ipv4_address: 172.90.10.6
demo-left: &demo
image: nutsfoundation/nuts-demo-ehr:main
volumes:
- "./docker-compose/left/config/demo/server.config.yaml:/app/server.config.yaml"
- "./docker-compose/left/config/demo/customers.json:/app/customers.json"
- "./docker-compose/left/data/demo:/app/data"
- "./docker-compose/lb/tls/ca.pem:/etc/ssl/certs/demo_ca.pem"
depends_on:
- hapi-left
- node-left
extra_hosts:
- "left.local:172.90.10.2"
- "node.left.local:172.90.10.2"
- "right.local:172.90.10.2"
- "node.right.local:172.90.10.2"
networks:
demo:
ipv4_address: 172.90.10.7
demo-right:
<<: *demo
volumes:
- "./docker-compose/right/config/demo/server.config.yaml:/app/server.config.yaml"
- "./docker-compose/right/config/demo/customers.json:/app/customers.json"
- "./docker-compose/right/data/demo:/app/data"
- "./docker-compose/lb/tls/ca.pem:/etc/ssl/certs/demo_ca.pem"
depends_on:
- hapi-right
- node-right
networks:
demo:
ipv4_address: 172.90.10.8
hapi-left: &hapi
image: hapiproject/hapi:v5.5.2
environment:
hapi.fhir.fhir_version: DSTU3
hapi.fhir.partitioning.allow_references_across_partitions: "false"
expose:
- 8080
networks:
demo:
ipv4_address: 172.90.10.9
volumes:
- "./docker-compose/left/data/hapi:/usr/local/tomcat/target"
hapi-right:
<<: *hapi
networks:
demo:
ipv4_address: 172.90.10.10
volumes:
- "./docker-compose/right/data/hapi:/usr/local/tomcat/target"
networks:
demo:
ipam:
config:
- subnet: 172.90.0.0/16
ip_range: 172.90.10.0/24