added network to db in dockercompose

This commit is contained in:
Jack Goh
2018-07-19 11:10:03 +08:00
parent 73c3e8654b
commit 74fda30311
+3
View File
@@ -58,6 +58,9 @@ services:
volumes:
- ./data/mysql:/var/lib/mysql
- ./docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
networks:
- frontend
- backend
ports:
- "3306:3306"
# redis