Dockerfiles for Ghost production setup.
Provide the following secrets in the following environment files:
mysql.env
:
MYSQL_ROOT_PASSWORD=...
MYSQL_PASSWORD=...
ghost.env
:
database__connection__password=...
mail__options__auth__pass=...
The following commands should be executed while in the root of this repository.
The nginx
image needs to be built first using:
$ docker-compose build
Afterwards, the ghost
and mysql
images can be pulled from Docker Hub:
$ docker-compose pull
Once the latest images are built/pulled, the containers can be rebuilt from the images using:
$ docker-compose up -d