From dedb73fe8748d882f25c1235a75b374feec5b4fc Mon Sep 17 00:00:00 2001 From: Matheus Martins Date: Thu, 27 Jun 2024 09:48:07 -0300 Subject: [PATCH 1/7] chore: Add Timezone and restart policy for postgres backup docker --- src/content/docs/self-hosting/docker.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/docs/self-hosting/docker.mdx b/src/content/docs/self-hosting/docker.mdx index 7204ead..3e581e3 100644 --- a/src/content/docs/self-hosting/docker.mdx +++ b/src/content/docs/self-hosting/docker.mdx @@ -107,6 +107,7 @@ You can add another service to your `docker-compose.yml` file to have it run dai ```yaml backup: + restart: unless-stopped container_name: atuin_db_dumper image: prodrigestivill/postgres-backup-local env_file: @@ -118,6 +119,7 @@ You can add another service to your `docker-compose.yml` file to have it run dai POSTGRES_PASSWORD: ${ATUIN_DB_PASSWORD} SCHEDULE: "@daily" BACKUP_DIR: /db_dumps + TZ: Europe/London volumes: - ./db_dumps:/db_dumps depends_on: From 92d88070ff71ed2ae774e3b29fee22dacd803d1f Mon Sep 17 00:00:00 2001 From: Matheus Martins Date: Mon, 2 Dec 2024 09:34:32 -0300 Subject: [PATCH 2/7] feat(docker-compose): add image version and healthcheck to backup container --- src/content/docs/self-hosting/docker.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/docs/self-hosting/docker.mdx b/src/content/docs/self-hosting/docker.mdx index 3e581e3..d1aa7c5 100644 --- a/src/content/docs/self-hosting/docker.mdx +++ b/src/content/docs/self-hosting/docker.mdx @@ -109,7 +109,7 @@ You can add another service to your `docker-compose.yml` file to have it run dai backup: restart: unless-stopped container_name: atuin_db_dumper - image: prodrigestivill/postgres-backup-local + image: prodrigestivill/postgres-backup-local:17-debian-234f538 env_file: - .env environment: @@ -120,6 +120,7 @@ You can add another service to your `docker-compose.yml` file to have it run dai SCHEDULE: "@daily" BACKUP_DIR: /db_dumps TZ: Europe/London + HEALTHCHECK_PORT: 8888 volumes: - ./db_dumps:/db_dumps depends_on: From 3c09e9a9ed41d171c3be970911e327c4753beaf6 Mon Sep 17 00:00:00 2001 From: Matheus Martins Date: Mon, 2 Dec 2024 10:29:26 -0300 Subject: [PATCH 3/7] Fix: port to healthcheck on backup container --- src/content/docs/self-hosting/docker.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/self-hosting/docker.mdx b/src/content/docs/self-hosting/docker.mdx index d1aa7c5..0a8ed94 100644 --- a/src/content/docs/self-hosting/docker.mdx +++ b/src/content/docs/self-hosting/docker.mdx @@ -120,7 +120,7 @@ You can add another service to your `docker-compose.yml` file to have it run dai SCHEDULE: "@daily" BACKUP_DIR: /db_dumps TZ: Europe/London - HEALTHCHECK_PORT: 8888 + HEALTHCHECK_PORT: 5432 volumes: - ./db_dumps:/db_dumps depends_on: From 5c03fb4ace0d1eda6b07f560cefe9cb2181a817b Mon Sep 17 00:00:00 2001 From: Matheus Martins Date: Sat, 7 Dec 2024 18:16:30 -0300 Subject: [PATCH 4/7] chore: add TZ on postgres docker compose --- src/content/docs/self-hosting/docker.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/docs/self-hosting/docker.mdx b/src/content/docs/self-hosting/docker.mdx index 0a8ed94..310469c 100644 --- a/src/content/docs/self-hosting/docker.mdx +++ b/src/content/docs/self-hosting/docker.mdx @@ -58,6 +58,7 @@ services: POSTGRES_USER: ${ATUIN_DB_USERNAME} POSTGRES_PASSWORD: ${ATUIN_DB_PASSWORD} POSTGRES_DB: ${ATUIN_DB_NAME} + TZ: Europe/London ``` Start the services using `docker compose`: From 6312dc9cca98297bcbaea06152354b892feb4460 Mon Sep 17 00:00:00 2001 From: Matheus Martins Date: Sat, 7 Dec 2024 18:19:09 -0300 Subject: [PATCH 5/7] chore: add Postgres timezone on docker compose --- src/content/docs/self-hosting/docker.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/docs/self-hosting/docker.mdx b/src/content/docs/self-hosting/docker.mdx index 310469c..60364e3 100644 --- a/src/content/docs/self-hosting/docker.mdx +++ b/src/content/docs/self-hosting/docker.mdx @@ -59,6 +59,7 @@ services: POSTGRES_PASSWORD: ${ATUIN_DB_PASSWORD} POSTGRES_DB: ${ATUIN_DB_NAME} TZ: Europe/London + PGTZ: Europe/London ``` Start the services using `docker compose`: From 4ee400d8809efa4f8bbbab5d74b64f1179de7c78 Mon Sep 17 00:00:00 2001 From: Matheus Martins Date: Tue, 25 Mar 2025 04:20:22 -0300 Subject: [PATCH 6/7] chore: return image backup to latest --- src/content/docs/self-hosting/docker.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/self-hosting/docker.mdx b/src/content/docs/self-hosting/docker.mdx index 60364e3..5f10c54 100644 --- a/src/content/docs/self-hosting/docker.mdx +++ b/src/content/docs/self-hosting/docker.mdx @@ -111,7 +111,7 @@ You can add another service to your `docker-compose.yml` file to have it run dai backup: restart: unless-stopped container_name: atuin_db_dumper - image: prodrigestivill/postgres-backup-local:17-debian-234f538 + image: prodrigestivill/postgres-backup-local env_file: - .env environment: From 122293346b9f9990be208ab56e5cf986ae7feb8d Mon Sep 17 00:00:00 2001 From: Matheus Martins Date: Tue, 25 Mar 2025 04:21:28 -0300 Subject: [PATCH 7/7] fix: identation on yaml docker --- src/content/docs/self-hosting/docker.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/self-hosting/docker.mdx b/src/content/docs/self-hosting/docker.mdx index 5f10c54..1c5157c 100644 --- a/src/content/docs/self-hosting/docker.mdx +++ b/src/content/docs/self-hosting/docker.mdx @@ -111,7 +111,7 @@ You can add another service to your `docker-compose.yml` file to have it run dai backup: restart: unless-stopped container_name: atuin_db_dumper - image: prodrigestivill/postgres-backup-local + image: prodrigestivill/postgres-backup-local env_file: - .env environment: