-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdocker-compose-orthanc.yml
92 lines (86 loc) · 2.82 KB
/
docker-compose-orthanc.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
services:
orthanc:
command: /run/secrets/
secrets:
- orthanc.json # CAUTION: This is an experimental implementation, not for production use.
image: mekomsolutions/orthanc:latest
labels:
- "traefik.enable=true"
- "traefik.http.services.orthanc.loadbalancer.server.port=8889"
- "traefik.http.routers.orthanc.rule=Host(`${ORTHANC_HOSTNAME}`)"
- "traefik.http.routers.orthanc.middlewares=orthanc"
platform: linux/amd64
restart: always
environment:
- ORTHANC_NAME=Orthanc
- ORTHANC_AUTHENTICATION=keycloak
- KEYCLOAK_REALM=orthanc
- KEYCLOAK_CLIENT_ID=orthanc
volumes:
- orthanc-db:/var/lib/orthanc/db
networks:
- ozone
- web
ports:
- "8889:8042"
# Orthanc - OpenMRS integration service
eip-openmrs-orthanc:
depends_on:
env-substitution:
condition: service_completed_successfully
openmrs:
condition: service_healthy
mysql:
condition: service_started
orthanc:
condition: service_started
environment:
- EIP_DB_NAME_ORTHANC=${EIP_DB_NAME_ORTHANC}
- EIP_DB_USER_ORTHANC=${EIP_DB_USER_ORTHANC}
- EIP_DB_PASSWORD_ORTHANC=${EIP_DB_PASSWORD_ORTHANC}
- OPENMRS_URL=http://openmrs:8080/openmrs
- ORTHANC_URL=http://orthanc:8042
- EIP_PROFILE=prod
- MYSQL_ADMIN_USER=root
- MYSQL_ADMIN_USER_PASSWORD=${MYSQL_ROOT_PASSWORD}
- OPENMRS_DB_HOST=${OPENMRS_DB_HOST}
- OPENMRS_DB_PORT=${OPENMRS_DB_PORT}
- OPENMRS_DB_NAME=${OPENMRS_DB_NAME}
- OPENMRS_DB_USER=${OPENMRS_DB_USER}
- OPENMRS_DB_PASSWORD=${OPENMRS_DB_PASSWORD}
- OPENMRS_USER=${OPENMRS_USER}
- OPENMRS_PASSWORD=${OPENMRS_PASSWORD}
- EIP_FHIR_RESOURCES=
- EIP_FHIR_SERVER_URL=http://openmrs:8080/openmrs/ws/fhir2/R4
- EIP_FHIR_USERNAME=${OPENMRS_USER}
- EIP_FHIR_PASSWORD=${OPENMRS_PASSWORD}
- ORTHANC_PUBLIC_URL=${SERVER_SCHEME}://${ORTHANC_HOSTNAME}
image: mekomsolutions/eip-client
networks:
web:
ozone:
aliases:
- eip-openmrs-orthanc
restart: unless-stopped
volumes:
- "${EIP_OPENMRS_ORTHANC_ROUTES_PATH}:/eip-client/routes"
- eip-home-orthanc:/eip-home
mysql:
environment:
EIP_DB_NAME_ORTHANC: ${EIP_DB_NAME_ORTHANC}
EIP_DB_USER_ORTHANC: ${EIP_DB_USER_ORTHANC}
EIP_DB_PASSWORD_ORTHANC: ${EIP_DB_PASSWORD_ORTHANC}
volumes:
- "${SQL_SCRIPTS_PATH}/mysql/eip-openmrs-orthanc:/docker-entrypoint-initdb.d/db/eip-openmrs-orthanc"
env-substitution:
environment:
- ORTHANC_PUBLIC_URL=${SERVER_SCHEME}://${ORTHANC_HOSTNAME}
secrets:
orthanc.json:
file: ${ORTHANC_CONFIG_PATH}/orthanc.json # CAUTION: This is an experimental implementation, not for production use.
networks:
ozone:
web:
volumes:
orthanc-db:
eip-home-orthanc: ~