Update wordpress/compose.yaml

This commit is contained in:
2025-12-11 11:03:10 +01:00
parent 5ffd910e65
commit 8d94470e9b

View File

@@ -11,11 +11,11 @@ services:
volumes:
# MySQL data → host
- /srv/appdata/wordpress/db:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
# healthcheck:
# test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
# interval: 10s
# timeout: 5s
# retries: 5
security_opt:
- no-new-privileges:true
logging:
@@ -30,7 +30,8 @@ services:
restart: unless-stopped
depends_on:
db:
condition: service_healthy
#condition: service_healthy
condition: service_started
environment:
- WORDPRESS_DB_HOST=db:3306
- WORDPRESS_DB_USER=${MYSQL_USER}