ghost (blog)
services:
ghost:
image: ghost:alpine
restart: always
ports:
- 2368:2368
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: $DB_PASSWORD
database__connection__database: ghost
# this url value is just an example, and is likely wrong for your environment!
#url: http://192.168.0.31:2368
url: https://diy.thedupacs.net
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
#NODE_ENV: development
volumes:
- /mnt/scratch/docker/data/ghost/content:/var/lib/ghost/content
db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: $DB_PASSWORD
volumes:
- /mnt/scratch/docker/data/ghost/mysql:/var/lib/mysql
volumes:
ghost: null
db: null
networks: {}