/postgresql-upgrader

Upgrade PostgreSQL data inside Docker

Primary LanguageShellMIT LicenseMIT

README

Upgrade PostgreSQL data inside Docker

If you like / use this project, please let me known by adding a ★ on the GitLab repository.

Usage

export CONTAINER_NEW_IMAGE=postgres:11-alpine
export CONTAINER_NEW_NAME=postgresql-new-version
export CONTAINER_OLD_IMAGE=postgres:10-alpine
export CONTAINER_OLD_NAME=postgresql-old-version
export VOLUME_CURRENT_VERSION=postgresql-current-volume
export VOLUME_NEW_VERSION=postgresql-new-volume
export VOLUME_OLD_VERSION=postgresql-old-volume

docker run --env CONTAINER_NEW_IMAGE --env CONTAINER_NEW_NAME --env CONTAINER_OLD_IMAGE --env CONTAINER_OLD_NAME --env VOLUME_CURRENT_VERSION --env VOLUME_NEW_VERSION --env VOLUME_OLD_VERSION --rm --init --volume /var/run/docker.sock:/var/run/docker.sock:ro mauchede/postgresql-upgrader

Links