Ghost blogging
I was looking for a platform to take notes about my hobby projects and share them. After a short research Ghost seemed to be an adequate tool.
It is an open source blogging platform, took only about a few minutes to launch and configure.
Ghost has an official Docker image, I was using docker-compose.
docker-compose.yml
version: '2' services: ghost: image: ghost container_name: ghost ports: - ""${GHOST_PORT}:2368"" volumes: - ${GHOST_DIR}:/var/lib/ghost environment: - NODE_ENV=${GHOST_ENV}
.env
GHOST_PORT=###YOUR_PORT### GHOST_DIR=###YOUR_DIR### GHOST_ENV=development
After building the image, I suggest to edit the config.js at the chosen directory, because production environment isn't configured yet. I am not sure why, the maintainer didn't include the paths
setting to the production block, but you can copy it from the development block, or from here:
config.js
... , paths: { contentPath: path.join(process.env.GHOST_CONTENT, '/') } ...
After editing config.js, change the GHOST_ENV
variable to ""production"" in the .env file and restart the container.
Almost ready to go, set the credentials at yourdomain.com**/ghost**
:-)