Skip to content

Instantly share code, notes, and snippets.

@cyborgx0x
Created June 11, 2025 02:20
Show Gist options
  • Save cyborgx0x/5bfb60e9a79b3cc91152212e384c3834 to your computer and use it in GitHub Desktop.
Save cyborgx0x/5bfb60e9a79b3cc91152212e384c3834 to your computer and use it in GitHub Desktop.
services:
ghost:
image: ghost:5-alpine
restart: always
ports:
- 8080:2368
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: example
database__connection__database: ghost
# this url value is just an example, and is likely wrong for your environment!
url: http://localhost:8080
# Gmail SMTP configuration
mail__transport: SMTP
mail__options__service: Gmail
mail__options__host: smtp.gmail.com
mail__options__port: 465
mail__options__secure: true
mail__options__auth__user: your-email@gmail.com
mail__options__auth__pass: your-app-password
# 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:
- ghost:/var/lib/ghost/content
db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
volumes:
- db:/var/lib/mysql
volumes:
ghost:
db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment