comparison postgres/Dockerfile @ 13:82b5ed864aee

DEP-7: set subdirectory for pgdata on volume
author smith@nwoca.org
date Sun, 27 Dec 2015 18:00:03 +0000
parents 0cdc167e6319
children 5c093612ce89
comparison
equal deleted inserted replaced
12:cbaf2e9ca770 13:82b5ed864aee
1 # 1 #
2 # Docker file to create postgres image for ssdt applications 2 # Docker file to create postgres image for ssdt applications
3 3
4 FROM postgres:9.4.4 4 FROM postgres:9.4.5
5 5
6 MAINTAINER Dave Smith smith@nwoca.org 6 MAINTAINER Dave Smith smith@nwoca.org
7 7
8 ENV PGDATA /var/lib/postgresql/data/pgdata 8 ENV DB_NAME=database \
9 ENV DB_NAME database 9 DB_USER=dbuser \
10 ENV DB_USER dbuser 10 DB_PASS=dbpassword \
11 ENV DB_PASS dbpassword 11 PGDATA=/var/lib/postgresql/data/pgdata
12
13 VOLUME "/var/log/postgresql"
14 12
15 COPY setupDatabase.sh /docker-entrypoint-initdb.d/setupDatabase.sh 13 COPY setupDatabase.sh /docker-entrypoint-initdb.d/setupDatabase.sh
16 14
17 RUN chmod 755 /docker-entrypoint-initdb.d/setupDatabase.sh 15 RUN chmod 755 /docker-entrypoint-initdb.d/setupDatabase.sh