From 08f36a7a50ad6ebbb42e78b0e4d0f780a110642e Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 20 Sep 2023 22:01:01 +1000 Subject: [PATCH] worker: Update wp script to use named volume for db --- worker/wp.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worker/wp.sh b/worker/wp.sh index 04855d5..c0cc7f0 100644 --- a/worker/wp.sh +++ b/worker/wp.sh @@ -43,6 +43,8 @@ services: MYSQL_DATABASE: WordPressDatabase MYSQL_USER: WordPressUser MYSQL_PASSWORD: $MYSQL_PASSWORD + volumes: + - mysql:/var/lib/mysql wordpress: depends_on: - ${DOMAIN}db