Skip to content
Snippets Groups Projects
Commit 05b98748 authored by DewanaGustavus's avatar DewanaGustavus
Browse files

chore: docker mysql healthcheck

parent a951af4c
Branches master
No related merge requests found
......@@ -11,7 +11,8 @@ services:
volumes:
- ./src:/var/www/html
depends_on:
- mysql
mysql:
condition: service_healthy
mysql:
image: mysql:latest
......@@ -20,6 +21,12 @@ services:
env_file: .env
volumes:
- ./mysql:/var/lib/mysql
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
start_period: 5s
interval: 5s
timeout: 5s
retries: 55
phpmyadmin:
image: phpmyadmin:latest
......@@ -28,4 +35,5 @@ services:
ports:
- 8081:80
depends_on:
- mysql
\ No newline at end of file
mysql:
condition: service_healthy
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment