-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
135 lines (127 loc) · 5.35 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: '3.2'
services:
# /samplepath/ is a replacement value
########################
# MyPain
########################
my-pain:
image: contentgroup/mypain:latest
ports:
- "80"
# Tells the reverse proxy to expose the container of my-pain.EnvDomain
labels:
- "traefik.enable=true"
- "traefik.http.routers.mypain.rule=PathPrefix(`/samplepath/my-pain`)"
- "traefik.http.routers.mypain.entrypoints=web"
# might require app configs in env variables
- "traefik.http.routers.mypain.middlewares=mypain-prefix"
# processing rules for router
- "traefik.http.middlewares.mypain-prefix.stripprefix.prefixes=/samplepath/my-pain"
environment:
- PUBLIC_URL=/samplepath/my-pain
########################
# PainManager
########################
pain-manager:
image: contentgroup/painmanager:latest
ports:
- "80"
# Tells the reverse proxy to expose the container of pain-manager.EnvDomain
labels:
- "traefik.enable=true"
- "traefik.http.routers.pain-manager.rule=PathPrefix(`/samplepath/pain-manager`)"
- "traefik.http.routers.pain-manager.entrypoints=web"
# might require app configs in env variables
- "traefik.http.routers.pain-manager.middlewares=pain-manager-prefix"
# processing rules for router
- "traefik.http.middlewares.pain-manager-prefix.stripprefix.prefixes=/samplepath/pain-manager"
environment:
- PUBLIC_URL=/samplepath/pain-manager
- CDS_URL=${PROTOCOL}://${HOST}${DOMAIN}/samplepath/r4/cqf-ruler/cds-services
########################
# CQF-Ruler
########################
cqf-ruler:
image: "alphora/cqf-ruler:latest"
restart: always
ports:
- "8080"
labels:
- "traefik.enable=true"
- "traefik.http.routers.cqf-ruler.rule=PathPrefix(`/samplepath/r4/cqf-ruler`)"
- "traefik.http.routers.cqf-ruler.entrypoints=web"
- "traefik.http.routers.cqf-ruler.middlewares=cqf-ruler-redirect,cqf-ruler-prefix,cqf-ruler-cors"
# processing rules for router
- "traefik.http.middlewares.cqf-ruler-prefix.stripprefix.prefixes=/samplepath/r4/cqf-ruler"
# match pattern and redirect to new url
- "traefik.http.middlewares.cqf-ruler-redirect.redirectregex.regex=^(.*)/samplepath/r4/cqf-ruler$$"
- "traefik.http.middlewares.cqf-ruler-redirect.redirectregex.replacement=$$1/samplepath/r4/cqf-ruler/"
# CORS (WIP)
- "traefik.http.middlewares.cqf-ruler-cors.headers.accesscontrolallowmethods=GET,OPTIONS"
- "traefik.http.middlewares.cqf-ruler-cors.headers.accesscontrolalloworigin=*"
- "traefik.http.middlewares.cqf-ruler-cors.headers.accesscontrolmaxage=86400"
- "traefik.http.middlewares.cqf-ruler-cors.headers.addvaryheader=true"
environment:
- HAPI_FHIR_SERVER_ADDRESS=${PROTOCOL}://${HOST}${DOMAIN}/samplepath/r4/cqf-ruler/fhir
- HAPI_FHIR_FHIR_VERSION=R4
- HAPI_FHIR_ENFORCE_REFERENTIAL_INTEGRITY_ON_WRITE=FALSE
- HAPI_FHIR_ENFORCE_REFERENTIAL_INTEGRITY_ON_DELETE=FALSE
- HAPI_FHIR_CR_MEASURE_REPORT_CARE_GAPS_REPORTER=Organization/alphora
- HAPI_FHIR_CR_MEASURE_REPORT_CARE_GAPS_COMPOSITION_SECTION_AUTHOR=Organization/alphora
- HAPI_FHIR_TESTER_HOME_SERVER_ADDRESS=${PROTOCOL}://${HOST}${DOMAIN}/samplepath/r4/cqf-ruler/fhir
########################
# Smart Launcher
########################
smart-launcher:
image: alphora/smart-launcher:latest
environment:
- "FHIR_SERVER_R4=${PROTOCOL}://${HOST}${DOMAIN}/samplepath/r4/cqf-ruler/fhir"
# "FHIR_SERVER_R3=${PROTOCOL}://${HOST}${DOMAIN}/samplepath/r4/cqf-ruler/fhir"
- "CDS_SANDBOX_URL=${PROTOCOL}://${HOST}${DOMAIN}/samplepath/smart-launcher"
- "BASE_URL=${PROTOCOL}://${HOST}${DOMAIN}/samplepath/smart-launcher"
ports:
- "80"
labels:
- "traefik.enable=true"
- "traefik.http.routers.smartlauncher.rule=PathPrefix(`/samplepath/smart-launcher`)"
- "traefik.http.routers.smartlauncher.entrypoints=web"
- "traefik.http.routers.smartlauncher.middlewares=smartlauncher-redirect,smartlauncher-prefix"
- "traefik.http.middlewares.smartlauncher-prefix.stripprefix.prefixes=/samplepath/smart-launcher"
# match pattern and redirect to new url
- "traefik.http.middlewares.smartlauncher-redirect.redirectregex.regex=^(.*)/samplepath/smart-launcher$$"
- "traefik.http.middlewares.smartlauncher-redirect.redirectregex.replacement=$$1/samplepath/smart-launcher/"
########################
# Traefik
########################
traefik:
image: "traefik:v2.2"
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.forwardedHeaders.insecure=true"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
labels:
- "traefik.enable=true"
########################
# Dozzle
########################
dozzle:
image: amir20/dozzle:latest
restart: always
ports:
- "8080"
labels:
- "traefik.enable=true"
- "traefik.http.routers.dozzle.rule=PathPrefix(`/samplepath/dashboard`)"
- "traefik.http.routers.dozzle.entrypoints=web"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DOZZLE_BASE=/samplepath/dashboard