Make database persistent

This commit is contained in:
Sun Howwrongbum 2018-07-14 00:27:41 +05:30
parent 5ec9f36509
commit 1bbcc430fd
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
/frappe-bench/**/*
!/frappe-bench/Procfile_docker
!/frappe-bench/sites/common_site_config_docker.json
/data_dir

View file

@ -7,6 +7,7 @@ services:
- MYSQL_USER=root
volumes:
- ./conf/mariadb-conf.d:/etc/mysql/conf.d
- ./data_dir:/var/lib/mysql
ports:
- "3307:3306" #mariadb-port
container_name: mariadb