From c29df81fe838aa4e219c7284b665c96bb9c81fee Mon Sep 17 00:00:00 2001 From: Piotr Mankowski Date: Sun, 25 Sep 2022 21:46:39 -0700 Subject: [PATCH] OpenELIS --- docker-compose.yml | 80 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 15b3f68..c2a50e0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -109,4 +109,82 @@ services: - /data/db restart: unless-stopped networks: - - hie \ No newline at end of file + - hie + +#### +# OpenELIS +#### + certs: + container_name: oe-certs + image: ghcr.io/i-tech-uw/certgen:main + restart: always + environment: + - KEYSTORE_PW="kspass" + - TRUSTSTORE_PW="tspass" + volumes: + - cert-volume:/etc/openelis-global + + database: + container_name: openelisglobal-database + image: postgres:9.5 + ports: + - "15432:5432" + restart: always + environment: + - POSTGRES_USER=postgres + - POSTGRES_PASSWORD=admin + - POSTGRES_DB=clinlims + - POSTGRES_INITDB_ARGS="--auth-host=md5" + volumes: + # preserves the database between containers + - db-data:/var/lib/postgresql/data + # files here will run on install + - openelis-db-data:/docker-entrypoint-initdb.d + healthcheck: + test: [ "CMD", "pg_isready", "-q", "-d", "clinlims", "-U", "clinlims" ] + timeout: 45s + interval: 10s + retries: 10 + + oe.openelis.org: + container_name: openelisglobal-webapp + image: ghcr.io/i-tech-uw/openelis-global-2:develop + depends_on: + - database + ports: + - "8095:8080" + - "8443:8443" + restart: always + environment: + - TZ=Africa/Nairobi + # context.xml doesn't seem to be able to pick up environment variables directly, so we are passing them in as CATALINA_OPTS + - CATALINA_OPTS= -Ddatasource.url=jdbc:postgresql://database:5432/clinlims -Ddatasource.username=clinlims -Ddatasource.password=clinlims + volumes: + - cert-volume:/etc/openelis-global + # - openelis-plugins-data:/var/lib/openelis-global/plugins + - openelis-server-data:/usr/local/tomcat/conf + - openelis-properties-data:/run/secrets + + fhir.openelis.org: + container_name: external-fhir-api + image: hapiproject/hapi:v5.5.1 + # ports: + # - "8081:8080" + # - "8444:8443" + restart: always + environment: + - hapi.fhir.auto_create_placeholder_reference_targets=true + - hapi.fhir.allow_placeholder_references=true + - hapi.fhir.allow_external_references=true + + fhir.openelis.org.remote: + container_name: openelis-remote-source + image: hapiproject/hapi:v5.5.1 + ports: + - "8081:8080" + # - "8444:8443" + restart: always + environment: + - hapi.fhir.auto_create_placeholder_reference_targets=true + - hapi.fhir.allow_placeholder_references=true + - hapi.fhir.allow_external_references=true