Skip to content

Instantly share code, notes, and snippets.

@nechered
Created February 6, 2024 14:41
Show Gist options
  • Save nechered/e066424ff3a18354ca4c264d321809cc to your computer and use it in GitHub Desktop.
Save nechered/e066424ff3a18354ca4c264d321809cc to your computer and use it in GitHub Desktop.
version: "3.3"
services:
ghost:
image: ghost:latest
restart: always
ports:
- "2368:2368"
depends_on:
- db
environment:
url: http://domain
database__client: mysql
database__connection__host: db
database__connection__user: ghost
database__connection__password: ghostdbpass
database__connection__database: ghostdb
volumes:
- /home/ghost/content:/var/lib/ghost/content
db:
image: mariadb:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: [PASSWORD]
MYSQL_USER: ghost
MYSQL_PASSWORD: ghostdbpass
MYSQL_DATABASE: ghostdb
volumes:
- /home/ghost/mysql:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment