From e545f8b460c8c07d6762ec66f5ced9314e73767c Mon Sep 17 00:00:00 2001 From: Hiroshi Urabe Date: Thu, 5 Mar 2020 17:03:28 +0900 Subject: [PATCH] add volume to mysql --- packages/env/lib/build-docker-compose-config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/env/lib/build-docker-compose-config.js b/packages/env/lib/build-docker-compose-config.js index 36d97bace63de8..8bc85da9f13262 100644 --- a/packages/env/lib/build-docker-compose-config.js +++ b/packages/env/lib/build-docker-compose-config.js @@ -69,6 +69,7 @@ module.exports = function buildDockerComposeConfig( config ) { environment: { MYSQL_ALLOW_EMPTY_PASSWORD: 'yes', }, + volumes: [ 'mysql:/var/lib/mysql' ], }, wordpress: { depends_on: [ 'mysql' ], @@ -108,6 +109,7 @@ module.exports = function buildDockerComposeConfig( config ) { volumes: { ...( ! config.coreSource && { wordpress: {} } ), ...( ! config.coreSource && { 'tests-wordpress': {} } ), + mysql: {}, }, }; };