changeset 13:82b5ed864aee

DEP-7: set subdirectory for pgdata on volume
author smith@nwoca.org
date Sun, 27 Dec 2015 18:00:03 +0000
parents cbaf2e9ca770
children 5643072a1af9
files postgres/Dockerfile
diffstat 1 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/postgres/Dockerfile	Sat Dec 26 22:19:41 2015 +0000
+++ b/postgres/Dockerfile	Sun Dec 27 18:00:03 2015 +0000
@@ -1,17 +1,15 @@
 #
 # Docker file to create postgres image for ssdt applications
 
-FROM postgres:9.4.4
+FROM postgres:9.4.5
 
 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"
+ENV DB_NAME=database \
+    DB_USER=dbuser \
+    DB_PASS=dbpassword \
+    PGDATA=/var/lib/postgresql/data/pgdata
 
 COPY setupDatabase.sh /docker-entrypoint-initdb.d/setupDatabase.sh
 
-RUN chmod 755 /docker-entrypoint-initdb.d/setupDatabase.sh
\ No newline at end of file
+RUN chmod 755 /docker-entrypoint-initdb.d/setupDatabase.sh