pgautoupgrade
A PostgreSQL Docker container that automatically upgrades your database.
Directory Structure
- .env
- docker-compose.yml
docker-compose.yml
version: "3.3"
services:
pgautoupgrade:
image: pgautoupgrade/pgautoupgrade:latest
container_name: pgauto
stdin_open: true
tty: true
volumes:
- type: bind
source: /path/to/your/database/directory
target: /var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
- PGAUTO_ONESHOT=yes
restart: alwaysResources
GitHub: https://github.com/pgautoupgrade/docker-pgautoupgrade
Docker Hub: https://hub.docker.com/r/pgautoupgrade/pgautoupgrade
Configuration: https://github.com/pgautoupgrade/docker-pgautoupgrade#how-to-use-this-image