From f5c8b94cc963793800958c89eaaa41c4dde2dab6 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 30 Mar 2024 17:37:02 +0000 Subject: [PATCH] refactor: use a named volume for devenv mysql data --- docker-compose.development.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.development.yml b/docker-compose.development.yml index 6d4baf6c..bbeb020d 100644 --- a/docker-compose.development.yml +++ b/docker-compose.development.yml @@ -2,6 +2,7 @@ version: '3' name: zeppelin-dev volumes: home: {} + mysql-data: {} services: nginx: build: @@ -20,8 +21,11 @@ services: MYSQL_PASSWORD: ${DEVELOPMENT_MYSQL_PASSWORD?:Missing DEVELOPMENT_MYSQL_PASSWORD} ports: - ${DEVELOPMENT_MYSQL_PORT:?Missing DEVELOPMENT_MYSQL_PORT}:3306 + # If you're upgrading from an older version, you can load your old database by switching the volumes below. + # Then, take a database dump from the old database, switch the volumes back, and load the dump into the new database. volumes: - - ./docker/development/data/mysql:/var/lib/mysql + - mysql-data:/var/lib/mysql + # - ./docker/production/data/mysql:/var/lib/mysql command: --authentication-policy=mysql_native_password devenv: