Skip to content

Commit

Permalink
Add healthcheck section to the documentation to change from PostgreSQ…
Browse files Browse the repository at this point in the history
…L to MySQL.

GitHub CI was failing with an unhealthy status.
  • Loading branch information
hammat authored and maxhelias committed Jun 17, 2024
1 parent 19dfcbe commit caf4143
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ Change the database image to use MySQL instead of PostgreSQL in `compose.yaml`:
+ MYSQL_PASSWORD: ${MYSQL_PASSWORD:-!ChangeMe!}
- POSTGRES_USER: ${POSTGRES_USER:-app}
+ MYSQL_USER: ${MYSQL_USER:-app}
healthcheck:
- test: ["CMD", "pg_isready", "-d", "${POSTGRES_DB:-app}", "-U", "${POSTGRES_USER:-app}"]
+ test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 5s
retries: 5
start_period: 60s
volumes:
- - database_data:/var/lib/postgresql/data:rw
+ - database_data:/var/lib/mysql:rw
Expand Down

0 comments on commit caf4143

Please sign in to comment.