Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Improve database healthcheck: Wait for user created

Smaug6739b5dd9def85f8
diff --git a/docker-compose.yml b/docker-compose.yml
index 7b326ee2..35bc0f24 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -25,7 +25,7 @@ services:
networks:
- alexandrie-network
healthcheck:
- test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
+ test: ['CMD-SHELL', "mysql -u$$MYSQL_USER -p$$MYSQL_PASSWORD -e 'SELECT 1' $$MYSQL_DATABASE"]
timeout: 10s
retries: 5
start_period: 30s