Added database creation step to docker composition.
[timetracker.git] / dockerfile-db
diff --git a/dockerfile-db b/dockerfile-db
new file mode 100644 (file)
index 0000000..b136739
--- /dev/null
@@ -0,0 +1,9 @@
+# This file is for development work. Not suitable for production.
+FROM mariadb:latest
+
+# Copy database creation script.
+COPY mysql.sql /docker-entrypoint-initdb.d/
+
+# Copy database population script, if available.
+# TODO: design a better directory structure.
+COPY populate.sql /docker-entrypoint-initdb.d/