Skip to content

Commit 5bc6275

Browse files
Update Dockerfile
Added PostgreSQL log and config
1 parent 1b305a5 commit 5bc6275

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

9.4/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
4949

5050
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
5151
ENV PGDATA /var/lib/postgresql/data
52-
VOLUME /var/lib/postgresql/data
52+
53+
# Keep Postgres log, config and storage outside of union filesystem
54+
VOLUME ["/var/lib/postgresql/data", \
55+
"/etc/postgresql/9.4/main", \
56+
"/var/log/postgresql"]
5357

5458
COPY docker-entrypoint.sh /
5559

0 commit comments

Comments
 (0)