Skip to content

Instantly share code, notes, and snippets.

@jgould22
jgould22 / Dockerfile
Last active August 20, 2025 16:01
Postgres 17 - Alpine - pg_partman with pg_jobmon
FROM postgres:17-alpine
LABEL maintainer="Jordan Gould <[email protected]>"
# Based on https://github.com/andreaswachowski/docker-postgres/blob/master/initdb.sh
# pg_jobmon 1.5.0
# They never cut a release for 1.5.0 (https://github.com/omniti-labs/pg_jobmon/commit/b9d49e6d4603f2670b3a2d512c31fc7cd5e9a334)
ENV PG_JOBMON_VERSION=b9d49e6d4603f2670b3a2d512c31fc7cd5e9a334
ENV PG_PARTMAN_VERSION=v5.2.4
# Install pg_jobmon