Skip to content

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

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
5 changes: 5 additions & 0 deletions src/content/docs/self-hosting/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ services:
POSTGRES_USER: ${ATUIN_DB_USERNAME}
POSTGRES_PASSWORD: ${ATUIN_DB_PASSWORD}
POSTGRES_DB: ${ATUIN_DB_NAME}
TZ: Europe/London
PGTZ: Europe/London
```

Start the services using `docker compose`:
Expand Down Expand Up @@ -107,6 +109,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:
Expand All @@ -118,6 +121,8 @@ 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
HEALTHCHECK_PORT: 5432
volumes:
- ./db_dumps:/db_dumps
depends_on:
Expand Down