forked from micahhausler/docker-postgres-cert
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (13 loc) · 667 Bytes
/
Dockerfile
File metadata and controls
17 lines (13 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM postgres:9.5
MAINTAINER Cayle Sharrock<cayle@nimbustech.biz>
# Override this in your docker run command to customize
ADD ./ssl.conf /etc/postgresql-common/ssl.conf
# Add the ssl config setup script
COPY pg_hba.conf /usr/share/postgresql/9.5/pg_hba.conf.sample
COPY postgresql.conf /usr/share/postgresql/9.5/postgresql.conf.sample
COPY server.crt server.key /var/ssl/
RUN chown postgres.postgres /usr/share/postgresql/9.5/pg_hba.conf.sample \
/usr/share/postgresql/9.5/postgresql.conf.sample \
/var/ssl/server.key \
/var/ssl/server.crt && \
chmod 600 /var/ssl/server.key