diff postgres/Dockerfile @ 3:0cdc167e6319

DEP-2: postgres dockerfile
author smith@nwoca.org
date Sat, 12 Sep 2015 08:57:00 -0400
parents
children 82b5ed864aee
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/postgres/Dockerfile	Sat Sep 12 08:57:00 2015 -0400
@@ -0,0 +1,17 @@
+#
+# Docker file to create postgres image for ssdt applications
+
+FROM postgres:9.4.4
+
+MAINTAINER Dave Smith smith@nwoca.org
+
+ENV PGDATA /var/lib/postgresql/data/pgdata
+ENV DB_NAME database
+ENV DB_USER dbuser
+ENV DB_PASS dbpassword
+
+VOLUME "/var/log/postgresql"
+
+COPY setupDatabase.sh /docker-entrypoint-initdb.d/setupDatabase.sh
+
+RUN chmod 755 /docker-entrypoint-initdb.d/setupDatabase.sh
\ No newline at end of file