fix: mysql healthcheck
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 13s
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 13s
This commit is contained in:
@@ -6,7 +6,8 @@ services:
|
|||||||
- "${WEB_PORT}:80"
|
- "${WEB_PORT}:80"
|
||||||
env_file: .env
|
env_file: .env
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
database:
|
||||||
|
condition: service_healthy
|
||||||
volumes:
|
volumes:
|
||||||
- ${LOCAL_MOVIES_DIR}:/var/download/movies
|
- ${LOCAL_MOVIES_DIR}:/var/download/movies
|
||||||
- ${LOCAL_TVSHOWS_DIR}:/var/download/tvshows
|
- ${LOCAL_TVSHOWS_DIR}:/var/download/tvshows
|
||||||
@@ -43,7 +44,7 @@ services:
|
|||||||
- mysql:/var/lib/mysql
|
- mysql:/var/lib/mysql
|
||||||
env_file: .env
|
env_file: .env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
|
test: ["CMD", "mysqladmin", "ping"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
|||||||
Reference in New Issue
Block a user