Skip to content

Commit 9505699

Browse files
committed
Add volume to persist mysql data
1 parent 02fb3b3 commit 9505699

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ services:
1414
ports:
1515
- "3307:3306"
1616
volumes:
17+
- mysql-data:/var/lib/mysql
1718
- ./docker/mysql-config.cnf:/etc/mysql/conf.d/config.cnf
1819
environment:
1920
MYSQL_ROOT_PASSWORD: root
2021
MYSQL_DATABASE: php_mvc
2122
MYSQL_USER: php_mvc
2223
MYSQL_PASSWORD: php_mvc
24+
25+
volumes:
26+
mysql-data:

0 commit comments

Comments
 (0)