From 1fdb0a2f4ac3c6ba172d1da061749ae42b946b71 Mon Sep 17 00:00:00 2001 From: diaco Date: Sat, 14 Feb 2026 14:53:30 +0330 Subject: [PATCH] feat: Add Dockerfile for borgmatic and update configuration in borgmatic.yml --- backup/Dockerfile.borgmatic | 14 ++++++++++++++ backup/borgmatic.yml | 5 ++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 backup/Dockerfile.borgmatic 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: