Files
Elite/ghost/docker-compose.yml
John Anderson 2b4e9380c0 Update ghost/docker-compose.yml
Add control via labels and update GHOST from 6.10.2-alpine to 6.10.3
2026-01-06 19:38:14 +00:00

49 lines
1.5 KiB
YAML

services:
ghost:
image: ghost:6.10.3
deploy:
replicas: 1
placement:
constraints:
- node.labels.target == here
restart: always
ports:
- 2368:2368
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: mysql
database__connection__user: ghost
database__connection__password: Carrot
database__connection__database: ghostdb
url: https://ghost.johnsnexus.click
#
mail__transport: "SMTP"
mail__options__host: "smtp.gmail.com"
# mail__options__host: "smtp.mailgun.org"
mail__options__port: "587"
mail__options__secureConnection: "false"
mail__options__auth__user: "revjohndanderson@gmail.com"
mail__options__auth__pass: "sorc lxqh araw lppf"
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explic>
#NODE_ENV: development
depends_on:
- mysql
volumes:
- /mnt/cephfs/docker/ghost/data:/var/lib/ghost/content
mysql:
image: mysql:8.4.6 # latest or last version of version 8; Ghost doesn't recognise version 9
deploy:
placement:
constraints:
- node.labels.database == here
restart: always
volumes:
- /mnt/cephfs/docker/mysql/ghost:/var/lib/mysql:rw
environment:
MYSQL_ROOT_PASSWORD: Vegetable
MYSQL_DATABASE: ghostdb
MYSQL_USER: ghost
MYSQL_PASSWORD: Carrot