Changed: to use the generated passwords from cbioportal-setup.sh. Removed: local database files (they have been added in the database image named bridgehead-cbioportal-database)

This commit is contained in:
root 2024-06-04 12:11:14 +02:00
parent dceac37810
commit 0ca5ad76f1
2 changed files with 16 additions and 8 deletions

View File

@ -2,12 +2,16 @@ version: '3.7'
services:
cbioportal:
image: docker.verbis.dkfz.de/ccp/dktk-cbioportal:latest
# image: docker.verbis.dkfz.de/ccp/dktk-cbioportal:latest
image: bridgehead-cbioportal
container_name: bridgehead-cbioportal
environment:
DB_PASSWORD: ${CBIOPORTAL_DB_PASSWORD}
# DB_PASSWORD: "password1234"
HTTP_RELATIVE_PATH: "/cbioportal"
UPLOAD_HTTP_RELATIVE_PATH: "/cbioportal-upload"
UPLOAD_FOLDER: "/app/uploads"
EXTRACTED_FOLDER: "/app/study"
depends_on:
- cbioportal-database
- cbioportal-session
@ -22,16 +26,18 @@ services:
- "traefik.http.routers.cbioportal-upload.tls=true"
- "traefik.http.services.cbioportal-upload.loadbalancer.server.port=8001"
cbioportal-database:
image: docker.verbis.dkfz.de/ccp/dktk-cbioportal-database:latest
restart: unless-stopped
# image: docker.verbis.dkfz.de/ccp/dktk-cbioportal-database:latest
image: bridgehead-cbioportal-database
container_name: bridgehead-cbioportal-database
environment:
MYSQL_DATABASE: cbioportal
MYSQL_USER: cbio_user
MYSQL_DATABASE: "cbioportal"
MYSQL_USER: "cbio_user"
MYSQL_PASSWORD: ${CBIOPORTAL_DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${CBIOPORTAL_DB_ROOT_PASSWORD}
# MYSQL_PASSWORD: "password1234"
# MYSQL_ROOT_PASSWORD: "password12"
volumes:
- /var/cache/bridgehead/ccp/cbioportal_db_data:/var/lib/mysql

View File

@ -1,5 +1,7 @@
#!/bin/bash -e
ENABLE_CBIOPORTAL=true
if [ "$ENABLE_CBIOPORTAL" == true ]; then
log INFO "cBioPortal setup detected -- will start cBioPortal service."
OVERRIDE+=" -f ./$PROJECT/modules/cbioportal-compose.yml"