Add database health check dependency for WordPress
Ensure WordPress waits for MariaDB to be fully initialized before starting, preventing "Error establishing a database connection" during startup. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,9 @@ services:
|
||||
restart: always
|
||||
expose:
|
||||
- 80
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db
|
||||
WORDPRESS_DB_USER: ${MYSQL_USER}
|
||||
|
||||
Reference in New Issue
Block a user