This Docker can be used to migrate the Ghost Blog database from a newer version.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
Dockerfile
LICENSE
MigratorConfig.js
README.md
migrate-database.sh

README.md

##DEPRECATED## There is no need anymore for this image. Knex migration tool is already contained into the ghost base installation and it is actually automatically run by the ghost base image.

Build Status

docker-ghostdbmigrate

This Docker can be used to migrate the Ghost Blog database from a newer version.

Installation

Building by yourself

git clone https://github.com/mmornati/docker-ghostdbmigrate.git
cd docker-ghostdbmigrate
docker build -t mmornati/docker-ghostdbmigrate .

From DockerHub

docker pull mmornati/docker-ghostdbmigrate

Usage

docker run -it --rm --name blogmigrate -e NODE_ENV=production -e DB_CURRENT_VERSION=1.0.2 -v /Users/mmornati/ghost-blog-test:/ghost-override mmornati/docker-ghostdbmigrate:v1.8.6

You have to change:

  • -v parameter to point to your external/database path
  • DB_CURRENT_VERSION variable with the version of ghost you use before the upgrade.