mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-30 05:11:13 +00:00
13 lines
466 B
Docker
13 lines
466 B
Docker
ARG VERSION
|
|
FROM postgres:${VERSION}-alpine
|
|
|
|
# Copy SSL certificate (and key)
|
|
COPY certs/server.crt /var/lib/postgresql/server.crt
|
|
COPY certs/ca.crt /var/lib/postgresql/ca.crt
|
|
COPY certs/keys/server.key /var/lib/postgresql/server.key
|
|
COPY postgres/pg_hba.conf /var/lib/postgresql/pg_hba.conf
|
|
|
|
# Fix permissions
|
|
RUN chown 70:70 /var/lib/postgresql/server.crt /var/lib/postgresql/server.key
|
|
RUN chmod 0600 /var/lib/postgresql/server.crt /var/lib/postgresql/server.key
|