diff --git a/backup/Dockerfile.borgmatic b/backup/Dockerfile.borgmatic new file mode 100644 index 0000000..fc676cd --- /dev/null +++ b/backup/Dockerfile.borgmatic @@ -0,0 +1,14 @@ +FROM python:3.13-alpine + +ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \ + PIP_NO_CACHE_DIR=1 + +# Install borgbackup, Postgres 18 client, and basic utilities. +RUN apk add --no-cache \ + borgbackup \ + openssh-client \ + postgresql-client=18.* \ + tzdata \ + ca-certificates \ + libffi \ + && pip install borgmatic diff --git a/backup/borgmatic.yml b/backup/borgmatic.yml index e4d5c80..78dabfe 100644 --- a/backup/borgmatic.yml +++ b/backup/borgmatic.yml @@ -1,7 +1,10 @@ --- services: borgmatic: - image: ghcr.io/borgmatic-collective/borgmatic:latest + build: + context: .. + dockerfile: backup/Dockerfile.borgmatic + image: local/borgmatic-pg18:latest container_name: borgmatic restart: unless-stopped environment: