From b6eb95e71227889985cafc44b7b9381bd68463d6 Mon Sep 17 00:00:00 2001 From: Sebastian G <69923762+SebasGDEV@users.noreply.github.com> Date: Fri, 7 Nov 2025 23:16:35 -0700 Subject: [PATCH] Add Postgresus templates to automate postgres backups (#490) * add postgresus templates to automate backups * Simplify docker-compose.yml for postgresus service Removed unnecessary container name and network configuration. --------- Co-authored-by: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> --- blueprints/postgresus/docker-compose.yml | 23 +++++++++++++++++++++++ blueprints/postgresus/postgresus.svg | 9 +++++++++ blueprints/postgresus/template.toml | 11 +++++++++++ meta.json | 17 +++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 blueprints/postgresus/docker-compose.yml create mode 100644 blueprints/postgresus/postgresus.svg create mode 100644 blueprints/postgresus/template.toml diff --git a/blueprints/postgresus/docker-compose.yml b/blueprints/postgresus/docker-compose.yml new file mode 100644 index 00000000..e0c573ee --- /dev/null +++ b/blueprints/postgresus/docker-compose.yml @@ -0,0 +1,23 @@ +services: + postgresus: + image: rostislavdugin/postgresus:latest + ports: + - "4005" + volumes: + # Persistent data storage + - postgresus-data:/postgresus-data + restart: unless-stopped + environment: + # Optional: Set timezone + - TZ=UTC + healthcheck: + test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:4005" ] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s + +volumes: + postgresus-data: + driver: local + diff --git a/blueprints/postgresus/postgresus.svg b/blueprints/postgresus/postgresus.svg new file mode 100644 index 00000000..7bad55be --- /dev/null +++ b/blueprints/postgresus/postgresus.svg @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/blueprints/postgresus/template.toml b/blueprints/postgresus/template.toml new file mode 100644 index 00000000..c746ffb1 --- /dev/null +++ b/blueprints/postgresus/template.toml @@ -0,0 +1,11 @@ +[variables] +main_domain = "${domain}" + +[config] +env = [] +mounts = [] + +[[config.domains]] +serviceName = "postgresus" +port = 4005 +host = "${main_domain}" diff --git a/meta.json b/meta.json index 8eff052e..9a82b34e 100644 --- a/meta.json +++ b/meta.json @@ -4541,6 +4541,23 @@ "webmail" ] }, + { + "id": "postgresus", + "name": "Postgresus", + "version": "latest", + "description": "Free, open source and self-hosted solution for automated PostgreSQL backups. With multiple storage options and notifications", + "logo": "postgresus.svg", + "links": { + "github": "hhttps://github.com/RostislavDugin/postgresus", + "website": "https://postgresus.com", + "docs": "https://postgresus.com" + }, + "tags": [ + "postgres", + "backup", + "s3" + ] + }, { "id": "postiz", "name": "Postiz",