Skip to content

Commit 9625c99

Browse files
authored
Merge pull request #1 from rlchapin/rlchapin-testvm
Update Dockerfile
2 parents 6d58978 + 2ef053c commit 9625c99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

9.6/alpine/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgres
139139
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
140140
ENV PGDATA /var/lib/postgresql/data
141141
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
142-
VOLUME /var/lib/postgresql/data
142+
VOLUME /postgres/data
143+
VOLUME /postgres/xlogs
143144

144145
COPY docker-entrypoint.sh /usr/local/bin/
145146
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat

0 commit comments

Comments
 (0)