Skip to content

Commit

Permalink
Adding additional check that database exists
Browse files Browse the repository at this point in the history
  • Loading branch information
bigchem committed Mar 4, 2023
1 parent 53a3f0b commit aa8aa72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion docker/ochem-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ services:
- ochem-demo-data:/var/lib/mysql:rw
networks:
- ochem-demo
healthcheck:
test: "mariadb ochem_demo -e 'describe ValidationSet'"
interval: 1s
retries: 300

ochem-demo:
hostname: localhost
Expand All @@ -54,7 +58,7 @@ services:
# capabilities: [ gpu ]
depends_on:
ochem-mariadb:
condition: service_started
condition: service_healthy
ochem-mongo:
condition: service_started

Expand Down
8 changes: 6 additions & 2 deletions docker/ochem-firm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ services:
- ochem-demo-data:/var/lib/mysql:rw
networks:
- ochem-demo

healthcheck:
test: "mariadb ochem_demo -e 'describe ValidationSet'"
interval: 1s
retries: 300

ochem-demo:
hostname: localhost
build:
Expand All @@ -54,7 +58,7 @@ services:
# capabilities: [ gpu ]
depends_on:
ochem-mariadb:
condition: service_started
condition: service_healthy
ochem-mongo:
condition: service_started

Expand Down

0 comments on commit aa8aa72

Please sign in to comment.