From f092c144f7fdbc6dc45b27470f88a2da0544c0a6 Mon Sep 17 00:00:00 2001 From: john Date: Sat, 25 Apr 2026 23:01:39 +0100 Subject: [PATCH] Add ghost/docker-compose.yml --- ghost/docker-compose.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 ghost/docker-compose.yml diff --git a/ghost/docker-compose.yml b/ghost/docker-compose.yml new file mode 100644 index 0000000..cb8d438 --- /dev/null +++ b/ghost/docker-compose.yml @@ -0,0 +1,41 @@ +services: + ghost: + image: ghost:latest + container_name: ghost + 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 + container_name: mysql8 + 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