Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
health check on docker-compose does not work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaintouret committed Sep 20, 2022
1 parent d8e2d12 commit 27711ca
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ services:
- ./logs:/app/labonneboite/logs
- ./labonneboite:/app/labonneboite
depends_on:
- elasticsearch
- mysql
elasticsearch:
condition: service_started
mysql:
condition: service_started
ports:
- 8080:8080

Expand Down Expand Up @@ -72,11 +74,11 @@ services:
<<: *dbenv
ports:
- 3306:3306
# healthcheck:
# test: mysql ${MYSQL_DATABASE} --user=${MYSQL_USER} --password='${MYSQL_PASSWORD}' --silent --execute "SELECT 1;"
# interval: 10s
# retries: 5
# timeout: 2s
healthcheck:
test: mysql ${MYSQL_DATABASE} --user=${MYSQL_USER} --password='${MYSQL_PASSWORD}' --silent --execute "SELECT 1;"
interval: 10s
retries: 5
timeout: 2s

# Dev tools
adminer:
Expand Down

0 comments on commit 27711ca

Please sign in to comment.