Database server with continuous archiving using Wal-E.
Set the environment variables for your platform as described in Wal-E's source code .
Follow the instuctions for the official postgres docker image to configure the PostgreSQL server.
It is highly recommended to set the
POSTGRES_PASSWORD environment variable.
You can change when full backups are made with the
variable. It runs at midnight by default.
Archiving to AWS S3, with a full backup daily at 00:42.
docker run -d --name=postgres \ -e POSTGRES_PASSWORD=pleasechangeme \ -e WALE_S3_PREFIX=s3://bucket/path/optionallymorepath \ -e AWS_ACCESS_KEY_ID=yourkeyhere \ -e AWS_SECRET_ACCESS_KEY=yoursecrethere \ -e CRON_PATTERN="42 0 * * *" \ erlend/postgres