-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(other): auto-migrate with docker-compose (#1937)
Motivation ---------- I got quite annoyed to run the database migrations manually when doing a `docker compose down -v` and `docker compose up`. This will help a little. Inspired by: https://stackoverflow.com/a/44283611 Healthcheck configuration: https://mariadb.com/kb/en/using-healthcheck-sh/ How to test ----------- 1. `docker compose down -v` 2. `docker compose up` 3. Migrations are auto-applied For production: 1. `docker compose -f docker-compose.yml down -v` 2. `docker compose -f docker-compose.yml up` 3. Migrations are auto-applied
- Loading branch information
1 parent
7717b53
commit 85f7dff
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters