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 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion 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,8 +109,9 @@ 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
image: prodrigestivill/postgres-backup-local:17-debian-234f538
env_file:
- .env
environment:
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