From 19ed6cc788fa4991b61b9d86cd820c5d39c0d2a4 Mon Sep 17 00:00:00 2001 From: john Date: Thu, 27 Nov 2025 16:54:03 +0000 Subject: [PATCH] Add ghost/docker-compose.yml --- ghost/docker-compose.yml | 59 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 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..dc75615 --- /dev/null +++ b/ghost/docker-compose.yml @@ -0,0 +1,59 @@ +services: + ghost: + image: ghost:6.3.1-alpine + container_name: ghost + deploy: + placement: + constraints: [node.role == worker] + replicas: 1 + 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://ctio.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" +# mail__options__auth__user: "john@ctio.johnsnexus.click" +# mail__options__auth__pass: "c0deda0f21d7c6e2ce00915ec71b9a75-8b22cbee-99a4bf43" + # 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: + - /media/gv0/docker/ghost/data:/var/lib/ghost/content + networks: + - caddy_net + + mysql: + image: mysql:8.4.6 # latest or last version of version 8; Ghost doesn't recognise version 9 + container_name: mysql + deploy: + placement: + constraints: [node.role == worker] + replicas: 1 + restart: always + volumes: + - /media/gv0/docker/ghost/mysql:/var/lib/mysql:rw + environment: + MYSQL_ROOT_PASSWORD: Vegetable + MYSQL_DATABASE: ghostdb + MYSQL_USER: ghost + MYSQL_PASSWORD: Carrot + networks: + - caddy_net + +networks: + caddy_net: + external: true