db persiste

This commit is contained in:
nat 2022-01-04 09:07:43 -03:00
parent 7ebeccd269
commit bcbcf05c3f
1 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,7 @@ services:
volumes: volumes:
- ./mysql/my.cnf:/etc/mysql/my.cnf - ./mysql/my.cnf:/etc/mysql/my.cnf
- ./mysql/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/ - ./mysql/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
- dbdata:/var/lib/mysql
networks: networks:
- app-network - app-network
@ -51,3 +52,8 @@ services:
networks: networks:
app-network: app-network:
driver: bridge driver: bridge
#Volumes
volumes:
dbdata:
driver: local