From bcbcf05c3fe9eabc046f2c122fa1bda0b8712ca6 Mon Sep 17 00:00:00 2001 From: nat Date: Tue, 4 Jan 2022 09:07:43 -0300 Subject: [PATCH] db persiste --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 751a88c..f062f88 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,6 +33,7 @@ services: volumes: - ./mysql/my.cnf:/etc/mysql/my.cnf - ./mysql/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/ + - dbdata:/var/lib/mysql networks: - app-network @@ -51,3 +52,8 @@ services: networks: app-network: driver: bridge + +#Volumes +volumes: + dbdata: + driver: local \ No newline at end of file