DenMaSeno 9 éve
commit
5a35699f69
2 módosított fájl, 6 hozzáadás és 0 törlés
  1. 3 0
      Dockerfile
  2. 3 0
      init-db.sql

+ 3 - 0
Dockerfile

@@ -0,0 +1,3 @@
+FROM mysql/mysql-server:5.7.12
+
+ADD init-db.sql /docker-entrypoint-initdb.d/init-db.sql

+ 3 - 0
init-db.sql

@@ -0,0 +1,3 @@
+CREATE DATABASE IF NOT EXISTS `demo`;
+
+GRANT ALL ON `demo`.* TO 'demo'@'%' IDENTIFIED BY 'dodolduren';