Skip to content

Commit

Permalink
add healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-coding committed Oct 8, 2024
1 parent 8db8149 commit 094eb3a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/build-test-docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ services:
MYSQL_ROOT_PASSWORD: test-sql-password
networks:
- tms_db
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10

tms-server:
image: TMS-Uni-Stuttgart/tms-test:0.0.0-pre
container_name: tms-test
depends_on:
- sql-db
sql-db:
condition: service_healthy
ports:
- '8080:8080'
networks:
Expand Down

0 comments on commit 094eb3a

Please sign in to comment.