percona service use DATA_SAVE_PATH env var, same way mysql, mariadb.

This commit is contained in:
Shao Yu Lung 2017-05-13 22:04:35 +08:00
parent 109e596417
commit 6ff7f4a402

View File

@ -214,7 +214,7 @@ services:
- MYSQL_PASSWORD=${PERCONA_PASSWORD} - MYSQL_PASSWORD=${PERCONA_PASSWORD}
- MYSQL_ROOT_PASSWORD=${PERCONA_ROOT_PASSWORD} - MYSQL_ROOT_PASSWORD=${PERCONA_ROOT_PASSWORD}
volumes: volumes:
- percona:/var/lib/mysql - ${DATA_SAVE_PATH}/percona:/var/lib/mysql
- ./percona/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d - ./percona/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
ports: ports:
- "${PERCONA_PORT}:3306" - "${PERCONA_PORT}:3306"