Add ghost/docker-compose.yml
This commit is contained in:
59
ghost/docker-compose.yml
Normal file
59
ghost/docker-compose.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user