Update wordpress/compose.yaml
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user