Docker Secrets on Ghost Blog
Docker secrets environment support on docker image reraxe/ghost:latest.
Ghost Blog With Docker Secrets Environment (ENV) Support
Latest ghost:5 with Debian on amd64 now has Docker secrets on reraxe/ghost:latest.
The Repository
Docker Hub
Repo maintenance
The image for ghost:5 does not currently support Docker secrets on their environments.
This image will be maintained till docker-library/ghost supports ENV secrets.
Feel free to use. Cheers!
Environments Supported
What are the supported environments?
database__connection__database, database__connection__user, database__connection__password and mail__options__auth__pass.
How to use this image with secrets?
To use image with environment secrets on Docker Compose, use _FILE at the end of the environment.
Example: mail__options__auth__pass --> mail__options__auth__pass_FILE
How do I create a secret?
CLI command on Docker swarm node host manager.
printf "mygmailtokenpassword" | docker secret create mailpass -
Docker Compose Example
version: "3"
services:
image: reraxe/ghost:latest
environment:
- database__connection__database_FILE=/run/secrets/database
- database__connection__user_FILE=/run/secrets/user
- database__connection__password_FILE=/run/secrets/password
- mail__options__auth__pass_FILE=/run/secrets/mailpass
secrets:
- database
- user
- password
- mailpass
...
# Reference 1 2 3