Skip to content

Commit

Permalink
Merge pull request #388 from Clinical-Genomics/fix_docker_compose_mysql
Browse files Browse the repository at this point in the history
Fix the healthcheck step of the docker-compose MySQL file
  • Loading branch information
northwestwitch authored Dec 11, 2024
2 parents 37d54f8 + 57a467d commit 83851f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [unreleased]
### Fixed
- The MariaDB healthcheck step in docker-compose-mysql.yml, preventing the demo app to start

## [2.1]
### Added
- Refseq transcripts names on coverage overview page
Expand Down
10 changes: 6 additions & 4 deletions docker-compose-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ services:
- MYSQL_DATABASE=${MYSQL_DATABASE_NAME}
- MYSQL_HOST_PORT=${MYSQL_HOST_PORT}
- MARIADB_RANDOM_ROOT_PASSWORD=T
healthcheck: # Wait for the service to be ready before accepting incoming connections
test: "mariadb --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} --execute \"SHOW DATABASES;\""
timeout: 10s
retries: 20
healthcheck:
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
volumes:
- ${HOST_DATA_VOLUME}:${CONTAINER_DATA_VOLUME}
networks:
Expand Down

0 comments on commit 83851f3

Please sign in to comment.