diff --git a/docker-compose.yml b/docker-compose.yml index 4f7b292f..9e0ead96 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,8 +14,16 @@ services: ports: - "33061:3306" command: --default-authentication-plugin=mysql_native_password + healthcheck: + test: ["CMD", "mysql", "-ubudget", "-ptest", "--execute", "SHOW DATABASES;"] + interval: 3s + timeout: 3s + retries: 5 app: build: ./ + depends_on: + database: + condition: service_healthy ports: - "8080:80"