Skip to content

Commit f5c8b94

Browse files
committed
refactor: use a named volume for devenv mysql data
1 parent af57622 commit f5c8b94

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker-compose.development.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: '3'
22
name: zeppelin-dev
33
volumes:
44
home: {}
5+
mysql-data: {}
56
services:
67
nginx:
78
build:
@@ -20,8 +21,11 @@ services:
2021
MYSQL_PASSWORD: ${DEVELOPMENT_MYSQL_PASSWORD?:Missing DEVELOPMENT_MYSQL_PASSWORD}
2122
ports:
2223
- ${DEVELOPMENT_MYSQL_PORT:?Missing DEVELOPMENT_MYSQL_PORT}:3306
24+
# If you're upgrading from an older version, you can load your old database by switching the volumes below.
25+
# Then, take a database dump from the old database, switch the volumes back, and load the dump into the new database.
2326
volumes:
24-
- ./docker/development/data/mysql:/var/lib/mysql
27+
- mysql-data:/var/lib/mysql
28+
# - ./docker/production/data/mysql:/var/lib/mysql
2529
command: --authentication-policy=mysql_native_password
2630

2731
devenv:

0 commit comments

Comments
 (0)