Fixed start and stop and c4 deployment

This commit is contained in:
root 2021-12-27 14:41:54 +01:00
parent 3bece85717
commit c23c1a8d3d
3 changed files with 42 additions and 41 deletions

View File

@ -9,15 +9,15 @@ volumes:
store_logs: null store_logs: null
secrets: secrets:
mainzelliste.docker.conf: mainzelliste.docker.conf:
file: ./internal-configuration/mainzelliste.conf file: ../internal-configuration/mainzelliste.conf
magicpl.docker.xml: magicpl.docker.xml:
file: ./internal-configuration/magicpl.xml file: ../internal-configuration/magicpl.xml
dktk_bridgehead_info.docker.xml: dktk_bridgehead_info.docker.xml:
file: ./internal-configuration/bridgehead-common.xml file: ../internal-configuration/bridgehead-common.xml
centralSearchPublicKey: centralSearchPublicKey:
file: ./internal-configuration/centralSearchPublicKey.der file: ../internal-configuration/centralSearchPublicKey.der
proxy.docker.xml: proxy.docker.xml:
file: ./internal-configuration/proxy.xml file: ../internal-configuration/proxy.xml
services: services:
connector: connector:
@ -28,7 +28,7 @@ services:
SITEID: ${SITEID} SITEID: ${SITEID}
CENTRAL_SEARCH: ${CCP_CENTRALSEARCH_URL} CENTRAL_SEARCH: ${CCP_CENTRALSEARCH_URL}
DECENTRAL_SEARCH: ${CCP_DECENTRALSEARCH_URL} DECENTRAL_SEARCH: ${CCP_DECENTRALSEARCH_URL}
MDR_URL: ${CCP_MDR_URL} MDR_URL: ${MDR_URL}
MONITOR_URL: ${CCP_MONITOR_URL} MONITOR_URL: ${CCP_MONITOR_URL}
SHARE_URL: "${PROTOCOL}://${HOST}:${PORT}" SHARE_URL: "${PROTOCOL}://${HOST}:${PORT}"
ID_MANAGER_URL: ${ID_MANAGER_URL} ID_MANAGER_URL: ${ID_MANAGER_URL}
@ -36,7 +36,7 @@ services:
PATIENTLIST_URL: ${PATIENTLIST_URL} PATIENTLIST_URL: ${PATIENTLIST_URL}
STORE_URL: ${LDM_URL} STORE_URL: ${LDM_URL}
POSTGRES_HOST: ${CONNECTOR_DB_HOST} POSTGRES_HOST: ${CONNECTOR_DB_HOST}
POSTGRES_PORT: 5432 POSTGRES_PORT: ${CONNECTOR_DB_PORT}
POSTGRES_DB: ${CONNECTOR_POSTGRES_DB} POSTGRES_DB: ${CONNECTOR_POSTGRES_DB}
POSTGRES_USER: ${CONNECTOR_POSTGRES_USER} POSTGRES_USER: ${CONNECTOR_POSTGRES_USER}
POSTGRES_PASS: ${C4_CONNECTOR_POSTGRES_PASSWORD} POSTGRES_PASS: ${C4_CONNECTOR_POSTGRES_PASSWORD}
@ -52,11 +52,11 @@ services:
- "connector_logs:/usr/local/tomcat/logs" - "connector_logs:/usr/local/tomcat/logs"
depends_on: depends_on:
- connector_db - connector_db
ports:
- "8082:8080"
- "65496:65395"
restart: always restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
- "${HOST}:${HOSTIP}"
connector_db: connector_db:
container_name: bridgehead_connector_db container_name: bridgehead_connector_db
image: postgres:10.17 image: postgres:10.17
@ -68,24 +68,22 @@ services:
volumes: volumes:
- "connector_db_data:/var/lib/postgresql/data" - "connector_db_data:/var/lib/postgresql/data"
restart: always restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
- "${HOST}:${HOSTIP}"
## ID-Management ## ID-Management
idmanager: idmanager:
container_name: bridgehead_idmanager container_name: bridgehead_idmanager
image: docker.verbis.dkfz.de/pseudonymisierung/magicpl:release-0.2.0 image: docker.verbis.dkfz.de/ccp/idmanager:deploy-c4
environment: environment:
MAGICPL_MAINZELLISTE_CENTRAL_URL: ${CCP_PATIENTLIST_URL} MAGICPL_MAINZELLISTE_CENTRAL_URL: ${CCP_PATIENTLIST_URL}
MAGICPL_CENTRAL_URL: ${CCP_CONTROLLNUMBERGENERATOR_URL} MAGICPL_CENTRAL_URL: ${CCP_CONTROLLNUMBERGENERATOR_URL}
MAGICPL_SITE: ${SITEID} MAGICPL_SITE: ${SITEID}
MAGICPL_LOG_LEVEL: info MAGICPL_LOG_LEVEL: info
GLOBAL_ID: DKTK GLOBAL_ID: DKTK
TZ: Europe/Berlin TZ: Europe/Berlin
volumes: volumes:
- "idmanager_logs:/usr/local/tomcat/logs" - "idmanager_logs:/usr/local/tomcat/logs"
ports:
- "8084:8080"
secrets: secrets:
- magicpl.docker.xml - magicpl.docker.xml
- dktk_bridgehead_info.docker.xml - dktk_bridgehead_info.docker.xml
@ -98,7 +96,7 @@ services:
MDR_URL: ${CCP_MDR_URL} MDR_URL: ${CCP_MDR_URL}
MDR_NAMESPACE: adt,dktk,marker MDR_NAMESPACE: adt,dktk,marker
MDR_VALIDATION: "false" MDR_VALIDATION: "false"
POSTGRES_HOST: store_db POSTGRES_HOST: bridgehead_store_db
POSTGRES_PORT: 5432 POSTGRES_PORT: 5432
POSTGRES_DB: samplystore POSTGRES_DB: samplystore
POSTGRES_USER: samplystore POSTGRES_USER: samplystore
@ -108,6 +106,9 @@ services:
- "store_logs:/usr/local/tomcat/logs" - "store_logs:/usr/local/tomcat/logs"
depends_on: depends_on:
- store_db - store_db
ports:
- "8083:8080"
- "65495:65395"
restart: always restart: always
store_db: store_db:

30
start-bridgehead.sh Normal file → Executable file
View File

@ -1,15 +1,15 @@
#!/bin/bash #!/bin/bash
### Note: Currently not complete, needs some features before useable for production ### Note: Currently not complete, needs some features before useable for production
./prerequisites.sh ./prerequisites.sh
source site.conf source site.conf
echo "Starting bridgehead" echo "Starting bridgehead"
cd ${project} cd ${project}
docker-compose --env-file ../site-config/${project}.env up docker-compose --env-file ../site-config/${project}.env up -d
cd .. cd ..
echo "The bridgehead should be in online in a few seconds" echo "The bridgehead should be in online in a few seconds"

18
stop-bridgehead.sh Normal file → Executable file
View File

@ -1,9 +1,9 @@
echo "Stoping bridgehead" echo "Stoping bridgehead"
source site.conf source site.conf
cd ${project} cd ${project}
docker-compose --env-file ../site-config/{project}.env down docker-compose --env-file ../site-config/${project}.env down
cd .. cd ..