mirror of
https://github.com/garraflavatra/docker-volume-s3-backup.git
synced 2025-07-19 00:04:04 +00:00
Add support for PostgreSQL 16, drop 11 (#39)
* Add support for PostgreSQL 16 This requires Alpine 3.19 * Drop support for PostgreSQL 11 Version 11 has reached end-of-life (EOL) https://www.postgresql.org/support/versioning/ * Install aws-cli via apk instead of pip3 This removes python3 and py3-pip as explicit dependencies. Python is still installed as a derived dependency. This fixes building on Alpine 3.19
This commit is contained in:
@ -6,13 +6,13 @@ This project provides Docker images to periodically back up a PostgreSQL databas
|
||||
```yaml
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:13
|
||||
image: postgres:16
|
||||
environment:
|
||||
POSTGRES_USER: user
|
||||
POSTGRES_PASSWORD: password
|
||||
|
||||
backup:
|
||||
image: eeshugerman/postgres-backup-s3:15
|
||||
image: eeshugerman/postgres-backup-s3:16
|
||||
environment:
|
||||
SCHEDULE: '@weekly' # optional
|
||||
BACKUP_KEEP_DAYS: 7 # optional
|
||||
@ -28,7 +28,7 @@ services:
|
||||
POSTGRES_PASSWORD: password
|
||||
```
|
||||
|
||||
- Images are tagged by the major PostgreSQL version supported: `11`, `12`, `13`, `14`, or `15`.
|
||||
- Images are tagged by the major PostgreSQL version supported: `12`, `13`, `14`, `15` or `16`.
|
||||
- The `SCHEDULE` variable determines backup frequency. See go-cron schedules documentation [here](http://godoc.org/github.com/robfig/cron#hdr-Predefined_schedules). Omit to run the backup immediately and then exit.
|
||||
- If `PASSPHRASE` is provided, the backup will be encrypted using GPG.
|
||||
- Run `docker exec <container name> sh backup.sh` to trigger a backup ad-hoc.
|
||||
|
Reference in New Issue
Block a user