-
Notifications
You must be signed in to change notification settings - Fork 32
/
Dockerfile
33 lines (32 loc) · 992 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ARG BASE_TAG
FROM docker.io/postgres:${BASE_TAG}
ENTRYPOINT [ "/autoconf-entrypoint" ]
CMD []
ENV CERTS="{}" \
CONF_EXTRA="" \
LAN_AUTH_METHOD=md5 \
LAN_CONNECTION=host \
LAN_DATABASES='["all"]' \
LAN_HBA_TPL="{connection} {db} {user} {cidr} {meth}" \
LAN_TLS=0 \
LAN_USERS='["all"]' \
WAN_AUTH_METHOD=cert \
WAN_CONNECTION=hostssl \
WAN_DATABASES='["all"]' \
WAN_HBA_TPL="{connection} {db} {user} {cidr} {meth}" \
WAN_TLS=1 \
WAN_USERS='["all"]' \
HBA_EXTRA_RULES=""
RUN apk add --no-cache python3 \
&& mkdir -p /etc/postgres \
&& chmod a=rwx /etc/postgres
RUN apk add --no-cache py3-netifaces
COPY autoconf-entrypoint /
# Metadata
ARG VCS_REF
ARG BUILD_DATE
LABEL org.label-schema.vendor=Tecnativa \
org.label-schema.license=Apache-2.0 \
org.label-schema.build-date="$BUILD_DATE" \
org.label-schema.vcs-ref="$VCS_REF" \
org.label-schema.vcs-url="https://github.com/Tecnativa/docker-postgres-autoconf"