Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add Timezone and restart policy for postgres backup docker #62

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mateuscomh
Copy link
Contributor

This PR makes two improvements to the docker-compose.yml file used for PostgreSQL backups inside doc page self-hosted docker:

  • Restart policy backup postgres docker-compose
    Adds a restart policy to the backup service to improve resiliency and ensure that the service recovers automatically in case of failures. Without this explicit configuration, the backup works only once and ends, without this explicit configuration, the backup only works once and ends

  • Add Timezone on docker-compose postgres backup
    Adds the TZ environment variable with the value Europe/London (example) to ensure that the container uses the correct time zone. Showing the user the possibility of changing the TZ and daily backups taking place at 00:00 in their time zone

@mateuscomh
Copy link
Contributor Author

After using and testing, i have add new options on docker-compose to backup the postgress BD

  • Define explicit image version in docker-compose
  • Add healthcheck to monitor container health on port 8888

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant