@@ -8,20 +8,25 @@ ARG PACKAGES="postgresql${PG_VERSION}-server postgresql${PG_VERSION}-client post
88ARG UPSTREAM_URL="https://www.postgresql.org/docs/release/"
99ARG HEALTHCHECK_ENDPOINT="pg_isready -q"
1010
11+ ENV HEALTHCHECK_URL="${HEALTHCHECK_ENDPOINT}"
12+
13+ # --- Metadata (Injected by Generator) ---
1114LABEL org.opencontainers.image.title="PostgreSQL ${PG_VERSION}" \
12- org.opencontainers.image.description="PostgreSQL ${PG_VERSION} on FreeBSD" \
13- org.opencontainers.image.source="https://github.com/daemonless/postgres" \
14- org.opencontainers.image.url="https://www.postgresql.org/" \
15- org.opencontainers.image.documentation="https://www.postgresql.org/docs/${PG_VERSION}/" \
16- org.opencontainers.image.licenses="PostgreSQL" \
17- org.opencontainers.image.vendor="daemonless" \
18- org.opencontainers.image.authors="daemonless" \
19- io.daemonless.port="5432" \
20- io.daemonless.arch="${FREEBSD_ARCH}" \
21- io.daemonless.category="Databases" \
22- io.daemonless.upstream-url="${UPSTREAM_URL}" \
23- io.daemonless.packages="${PACKAGES}" \
24- org.freebsd.jail.allow.sysvipc="required"
15+ org.opencontainers.image.description="The World's Most Advanced Open Source Relational Database on FreeBSD." \
16+ org.opencontainers.image.source="https://github.com/daemonless/postgres" \
17+ org.opencontainers.image.url="https://www.postgresql.org/" \
18+ org.opencontainers.image.documentation="https://www.postgresql.org/docs/${PG_VERSION}/" \
19+ org.opencontainers.image.licenses="PostgreSQL" \
20+ org.opencontainers.image.vendor="daemonless" \
21+ org.opencontainers.image.authors="daemonless" \
22+ io.daemonless.category="Databases" \
23+ io.daemonless.port="5432" \
24+ io.daemonless.volumes="/var/lib/postgresql/data" \
25+ org.freebsd.jail.allow.sysvipc="required" \
26+ io.daemonless.arch="${FREEBSD_ARCH}" \
27+ io.daemonless.pkg-source="containerfile" \
28+ io.daemonless.upstream-url="${UPSTREAM_URL}" \
29+ io.daemonless.packages="${PACKAGES}"
2530
2631# Install PostgreSQL
2732RUN pkg update && \
@@ -38,7 +43,7 @@ RUN mkdir -p /var/lib/postgresql/data /var/run/postgresql /run/secrets /docker-e
3843COPY root/ /
3944
4045# Make scripts executable
41- RUN chmod +x /etc/services.d/*/run /etc/cont-init.d/* 2>/dev/null || true
46+ RUN chmod +x /etc/services.d/*/run /etc/cont-init.d/* /healthz 2>/dev/null || true
4247
4348# Store PG version for scripts
4449RUN mkdir -p /var/db/postgres && echo "${PG_VERSION}" > /var/db/postgres/pg_version
@@ -55,5 +60,8 @@ ENV PGDATA="/var/lib/postgresql/data" \
5560 POSTGRES_INITDB_ARGS="" \
5661 POSTGRES_HOST_AUTH_METHOD="scram-sha-256"
5762
63+ # --- Expose (Injected by Generator) ---
5864EXPOSE 5432
59- VOLUME /var/lib/postgresql/data
65+
66+ # --- Volumes (Injected by Generator) ---
67+ VOLUME /var/lib/postgresql/data
0 commit comments