forked from nhsconnect/careconnect-reference-implementation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
117 lines (110 loc) · 4.02 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
version: '3'
services:
ccri:
container_name: ccri
build: ccri-fhirserver
image: thorlogic/ccri-fhirserver:${CRRI_VERSION}
depends_on:
- ccrisql
links:
- ccrisql
environment:
- datasource.username=${MYSQL_DB_USER}
- datasource.password=${MYSQL_DB_PASSWORD}
- datasource.host=//ccrisql
- datasource.driver=com.mysql.jdbc.Driver
- datasource.path=3306/careconnect?autoReconnect=true
- datasource.vendor=mysql
- datasource.showSql=true
- datasource.showDdl=true
- datasource.cleardown.cron=0 19 21 * * *
- datasource.dialect=org.hibernate.dialect.MySQL57Dialect
- datasource.ui.serverBase=http://${FHIR_SERVER_BASE_HOST}/careconnect-ri/STU3
- datasource.serverBase=http://${FHIR_SERVER_BASE_HOST}/careconnect-ri/STU3
ports:
- 8080:8080
extra_hosts:
# Define an alias to loop back for REST Connections
- "${FHIR_SERVER_BASE_HOST}:127.0.0.1"
volumes:
- tomcat-log-volume:/usr/local/tomcat/logs
networks:
ccri_net:
ipv4_address: 172.168.240.10
ccrimongo:
container_name: ccrimongo
image: mongo:3.6.3
ports:
- 27107:27107
networks:
- ccri_net
ccrisql:
container_name: ccrisql
image: mysql:5.7.20
environment:
- MYSQL_ROOT_PASSWORD=mypassword
- MYSQL_DATABASE=careconnect
- MYSQL_USER=${MYSQL_DB_USER}
- MYSQL_PASSWORD=${MYSQL_DB_PASSWORD}
- timezone=+0:00
- default-time-zone=+0:00
ports:
- 43306:3306
networks:
- ccri_net
command: mysqld --character-set-server=utf8 --collation-server=utf8_bin --innodb_lock_wait_timeout=300 --transaction-isolation=READ-UNCOMMITTED
ccrigateway:
container_name: ccrigateway
build: ccri-fhirgateway
image: thorlogic/ccri-fhirgateway:${CRRI_VERSION}
environment:
- datasource.ui.serverBase=http://${FHIR_SERVER_BASE_HOST}/careconnect-ri/STU3
- fhir.resource.serverBase=http://${FHIR_SERVER_BASE_HOST}/careconnect-ri/STU3
- fhir.restserver.serverBase=http4://${FHIR_SERVER_BASE_HOST}/careconnect-ri/STU3?throwExceptionOnFailure=false&bridgeEndpoint=true
- fhir.restserver.edmsBase=http4://127.0.0.1:8184/STU3?throwExceptionOnFailure=false&bridgeEndpoint=true
depends_on:
- ccri
ports:
- 80:80
extra_hosts:
# Define an alias to the CCRI Container to ensure that the correct Server Base is displayed by HAPI
- "${FHIR_SERVER_BASE_HOST}:172.168.240.10"
volumes:
- gateway-log-volume:/usr/local/tomcat/logs
networks:
- ccri_net
ccrigatewayhttps:
container_name: ccrigatewayhttps
build: ccri-fhirgatewayhttps
image: thorlogic/ccri-fhirgatewayhttps:${CRRI_VERSION}
environment:
- datasource.ui.serverBase=http://${FHIR_SERVER_BASE_HOST}/careconnect-ri/STU3
- fhir.resource.serverBase=http://${FHIR_SERVER_BASE_HOST}/careconnect-ri/STU3
- fhir.restserver.serverBase=http4://${FHIR_SERVER_BASE_HOST}/careconnect-ri/STU3?throwExceptionOnFailure=false&bridgeEndpoint=true
- fhir.restserver.edmsBase=http4://127.0.0.1:8184/STU3?throwExceptionOnFailure=false&bridgeEndpoint=true
- fhir.restserver.oauth=http4:194.189.27.194:20080?throwExceptionOnFailure=false&bridgeEndpoint=true
- fhir.oauth2.authorize=https://purple.testlab.nhs.uk/careconnect-ri/oauth2/authorize
- fhir.oauth2.token=https://purple.testlab.nhs.uk/careconnect-ri/oauth2/token
- fhir.oauth2.register=https://purple.testlab.nhs.uk/careconnect-ri/oauth2/register
depends_on:
- ccri
ports:
- 443:8443
extra_hosts:
# Define an alias to the CCRI Container to ensure that the correct Server Base is displayed by HAPI
- "${FHIR_SERVER_BASE_HOST}:172.168.240.10"
volumes:
- gatewayssl-log-volume:/usr/local/tomcat/logs
networks:
- ccri_net
volumes:
tomcat-log-volume:
gateway-log-volume:
gatewayssl-log-volume:
networks:
ccri_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.168.240.0/24