chore: Add Timezone and restart policy for postgres backup docker#3083
chore: Add Timezone and restart policy for postgres backup docker#3083BinaryMuse wants to merge 1 commit intomainfrom
Conversation
Add TZ/PGTZ environment variables and restart policy for better reliability of the docker backup setup. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Greptile SummaryAdds timezone environment variables (
Important Files Changed
|
| SCHEDULE: "@daily" | ||
| BACKUP_DIR: /db_dumps | ||
| TZ: Europe/London | ||
| HEALTHCHECK_PORT: 5432 |
There was a problem hiding this comment.
logic: HEALTHCHECK_PORT should be the backup container's healthcheck port, not the postgres port. Remove this or use a different port (default is 8080 for this image).
There was a problem hiding this comment.
We can just remove the healthcheck on port or put the command to validade:
healthcheck:
test: ["CMD-SHELL", "pg_isready -h db -U ${ATUIN_DB_USERNAME}"]
interval: 30s
timeout: 5s
retries: 3
Hello, if you can fix the original author is @mateuscomh |
|
Oops, not sure how that happened. Fixed. |
Add TZ/PGTZ environment variables and restart policy for better reliability of the docker backup setup.
Migrated from atuinsh/docs#62
Original author: @mateuscomh