8000 Add healthcheck section to the documentation to change from PostgreSQ… · dunglas/symfony-docker@caf4143 · GitHub
[go: up one dir, main page]

Skip to content

Commit caf4143

Browse files
hammatmaxhelias
authored andcommitted
Add healthcheck section to the documentation to change from PostgreSQL to MySQL.
GitHub CI was failing with an unhealthy status.
1 parent 19dfcbe commit caf4143

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/mysql.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Change the database image to use MySQL instead of PostgreSQL in `compose.yaml`:
2121
+ MYSQL_PASSWORD: ${MYSQL_PASSWORD:-!ChangeMe!}
2222
- POSTGRES_USER: ${POSTGRES_USER:-app}
2323
+ MYSQL_USER: ${MYSQL_USER:-app}
24+
healthcheck:
25+
- test: ["CMD", "pg_isready", "-d", "${POSTGRES_DB:-app}", "-U", "${POSTGRES_USER:-app}"]
26+
+ test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
27+
timeout: 5s
28+
retries: 5
29+
start_period: 60s
2430
volumes:
2531
- - database_data:/var/lib/postgresql/data:rw
2632
+ - database_data:/var/lib/mysql:rw

0 commit comments

Comments
 (0)
0