mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-11-04 06:00:18 +01:00 
			
		
		
		
	Merge pull request #194 from samply/workaround/secondary-cortex-blaze
Workaround/secondary cortex blaze
This commit is contained in:
		
							
								
								
									
										32
									
								
								ccp/modules/blaze-secondary-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								ccp/modules/blaze-secondary-compose.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
				
			|||||||
 | 
					version: "3.7"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					services:
 | 
				
			||||||
 | 
					  blaze-secondary:
 | 
				
			||||||
 | 
					    image: docker.verbis.dkfz.de/cache/samply/blaze:0.28
 | 
				
			||||||
 | 
					    container_name: bridgehead-ccp-blaze-secondary
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      BASE_URL: "http://bridgehead-ccp-blaze-secondary:8080"
 | 
				
			||||||
 | 
					      JAVA_TOOL_OPTIONS: "-Xmx${BLAZE_MEMORY_CAP:-4096}m"
 | 
				
			||||||
 | 
					      DB_RESOURCE_CACHE_SIZE: ${BLAZE_RESOURCE_CACHE_CAP:-2500000}
 | 
				
			||||||
 | 
					      DB_BLOCK_CACHE_SIZE: $BLAZE_MEMORY_CAP
 | 
				
			||||||
 | 
					      ENFORCE_REFERENTIAL_INTEGRITY: "false"
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - "blaze-secondary-data:/app/data"
 | 
				
			||||||
 | 
					    labels:
 | 
				
			||||||
 | 
					      - "traefik.enable=true"
 | 
				
			||||||
 | 
					      - "traefik.http.routers.blaze-secondary_ccp.rule=PathPrefix(`/ccp-localdatamanagement-secondary`)"
 | 
				
			||||||
 | 
					      - "traefik.http.middlewares.ccp_b-secondary_strip.stripprefix.prefixes=/ccp-localdatamanagement-secondary"
 | 
				
			||||||
 | 
					      - "traefik.http.services.blaze-secondary_ccp.loadbalancer.server.port=8080"
 | 
				
			||||||
 | 
					      - "traefik.http.routers.blaze-secondary_ccp.middlewares=ccp_b-secondary_strip,auth"
 | 
				
			||||||
 | 
					      - "traefik.http.routers.blaze-secondary_ccp.tls=true"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  obds2fhir-rest:
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      STORE_PATH: ${STORE_PATH:-http://blaze:8080/fhir}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  exporter:
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      BLAZE_HOST: "blaze-secondary"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					volumes:
 | 
				
			||||||
 | 
					  blaze-secondary-data:
 | 
				
			||||||
							
								
								
									
										11
									
								
								ccp/modules/blaze-secondary-setup.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								ccp/modules/blaze-secondary-setup.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function blazeSecondarySetup() {
 | 
				
			||||||
 | 
					  if [ -n "$ENABLE_SECONDARY_BLAZE" ]; then
 | 
				
			||||||
 | 
					    log INFO "Secondary Blaze setup detected -- will start second blaze."
 | 
				
			||||||
 | 
					    OVERRIDE+=" -f ./$PROJECT/modules/blaze-secondary-compose.yml"
 | 
				
			||||||
 | 
					    #make oBDS2FHIR ignore ID-Management and replace target Blaze
 | 
				
			||||||
 | 
					    PATIENTLIST_URL=" "
 | 
				
			||||||
 | 
					    STORE_PATH="http://blaze-secondary:8080/fhir"
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user