Skip to content

Instantly share code, notes, and snippets.

@Fartomy
Created March 9, 2025 00:42
Show Gist options
  • Save Fartomy/f9860dc19e66585976ce13752d032e74 to your computer and use it in GitHub Desktop.
Save Fartomy/f9860dc19e66585976ce13752d032e74 to your computer and use it in GitHub Desktop.
CasaOS Ghost Docker Compose File
name: Ghost
services:
ghost:
image: ghost:5-alpine
restart: always
ports:
- "8080:2368"
environment:
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: example
database__connection__database: ghost
url: http://localhost:8080
volumes:
- /DATA/AppData/$AppID/data/ghost:/var/lib/ghost/content
networks:
- ghost_network
x-casaos:
volumes:
- container: /var/lib/ghost/content
description:
en_us: "Container Path: /var/lib/ghost/content"
ports:
- container: "2368"
description:
en_us: "Container Port: 2368"
db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
volumes:
- /DATA/AppData/$AppID/data/db:/var/lib/mysql
networks:
- ghost_network
x-casaos:
volumes:
- container: /var/lib/mysql
description:
en_us: "Container Path: /var/lib/mysql"
networks:
ghost_network:
driver: bridge
volumes:
ghost:
db:
x-casaos:
architectures:
- amd64
- arm64
main: ghost
description:
en_us: Your Web pages and your posts.
tagline:
en_us: Ghost
developer: "ghost"
author: Fartomy
icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/ghost.png
thumbnail: ""
title:
en_us: Ghost
category: Utilities
port_map: "8080"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment