# Postgres for the Scrabble contour, extended with pgBackRest for continuous WAL # archiving and point-in-time recovery. pgBackRest must live in the database container # because Postgres runs archive_command in-process; the scheduled base backups and the # manual restore drills invoke the same binary through `docker exec`, inheriting the # repository configuration from the container environment. # # Archiving is enabled only on the production main host, where the prod overlay # (docker-compose.prod.yml) sets archive_mode and supplies the S3 repository. On the test # contour this image behaves exactly as a plain postgres:17-alpine. See deploy/README.md # (point-in-time recovery). FROM postgres:17-alpine RUN apk add --no-cache pgbackrest