55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
# 2026-05-29 Hyperling
|
|
# Supposedly much more resource friendly alternative to WordPress, which I typically avoid due to the resource usage andd slow response times.
|
|
# https://hub.docker.com/_/ghost
|
|
|
|
services:
|
|
|
|
ghost-app:
|
|
container_name: $APP_NAME
|
|
image: ghost:bookworm
|
|
restart: always
|
|
ports:
|
|
- 8368:2368
|
|
depends_on:
|
|
ghost-db:
|
|
condition: service_healthy
|
|
environment:
|
|
# see https://ghost.org/docs/config/#configuration-options
|
|
database__client: mysql
|
|
database__connection__host: $DB_NAME
|
|
database__connection__user: root
|
|
database__connection__password: $DB_ROOT_PASSWORD
|
|
database__connection__database: $DB_DATABASE
|
|
url: $URL
|
|
NODE_ENV: $MODE
|
|
volumes:
|
|
- ../../Volumes/Ghost/ghost:/var/lib/ghost/content
|
|
deploy:
|
|
mode: global
|
|
resources:
|
|
limits:
|
|
cpus: $CPU
|
|
memory: $MEM
|
|
|
|
ghost-db:
|
|
container_name: $DB_NAME
|
|
image: mariadb:lts
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
environment:
|
|
MARIADB_ROOT_PASSWORD: $DB_ROOT_PASSWORD
|
|
MARIADB_AUTO_UPGRADE: $DB_AUTO_UPGRADE
|
|
volumes:
|
|
- ../../Volumes/Ghost/db:/var/lib/mysql
|
|
deploy:
|
|
mode: global
|
|
resources:
|
|
limits:
|
|
cpus: $CPU_DB
|
|
memory: $MEM_DB
|
|
|
|
volumes:
|
|
ghost:
|
|
db:
|