Update wordpress/compose.yaml
This commit is contained in:
@@ -11,11 +11,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# MySQL data → host
|
# MySQL data → host
|
||||||
- /srv/appdata/wordpress/db:/var/lib/mysql
|
- /srv/appdata/wordpress/db:/var/lib/mysql
|
||||||
healthcheck:
|
# healthcheck:
|
||||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
# test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
||||||
interval: 10s
|
# interval: 10s
|
||||||
timeout: 5s
|
# timeout: 5s
|
||||||
retries: 5
|
# retries: 5
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
logging:
|
logging:
|
||||||
@@ -30,7 +30,8 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
#condition: service_healthy
|
||||||
|
condition: service_started
|
||||||
environment:
|
environment:
|
||||||
- WORDPRESS_DB_HOST=db:3306
|
- WORDPRESS_DB_HOST=db:3306
|
||||||
- WORDPRESS_DB_USER=${MYSQL_USER}
|
- WORDPRESS_DB_USER=${MYSQL_USER}
|
||||||
|
|||||||
Reference in New Issue
Block a user