mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-07-24 13:00:18 +08:00
Dockerfile: added PG_RUNDIR variable
This commit is contained in:
+3
-2
@@ -3,7 +3,8 @@ MAINTAINER sameer@damagehead.com
|
||||
|
||||
ENV PG_VERSION=9.4 \
|
||||
PG_USER=postgres \
|
||||
PG_HOME="/var/lib/postgresql"
|
||||
PG_HOME=/var/lib/postgresql \
|
||||
PG_RUNDIR=/run/postgresql
|
||||
|
||||
ENV PG_CONFDIR="/etc/postgresql/${PG_VERSION}/main" \
|
||||
PG_BINDIR="/usr/lib/postgresql/${PG_VERSION}/bin" \
|
||||
@@ -20,5 +21,5 @@ COPY entrypoint.sh /sbin/entrypoint.sh
|
||||
RUN chmod 755 /sbin/entrypoint.sh
|
||||
|
||||
EXPOSE 5432/tcp
|
||||
VOLUME ["${PG_HOME}", "/run/postgresql"]
|
||||
VOLUME ["${PG_HOME}", "${PG_RUNDIR}"]
|
||||
CMD ["/sbin/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user