Improving ghost & nextcloud compose configs.

This commit is contained in:
2025-12-08 06:58:02 -08:00
parent 179373f04a
commit 73d6d28c69
5 changed files with 105 additions and 58 deletions

View File

@@ -18,17 +18,17 @@ services:
tinybird__tracker__datasource: analytics_events
tinybird__stats__endpoint: ${GHOST_TINYBIRD_API_URL:-https://api.tinybird.co}
volumes:
- ${GHOST_UPLOAD_LOCATION:-./data/ghost}:/var/lib/ghost/content
- /nassella/ghost/var-lib-ghost-content:/var/lib/ghost/content
depends_on:
ghost_db:
condition: service_healthy
tinybird-sync:
ghost_tinybird-sync:
condition: service_completed_successfully
required: false
tinybird-deploy:
ghost_tinybird-deploy:
condition: service_completed_successfully
required: false
activitypub:
ghost_activitypub:
condition: service_started
required: false
networks:
@@ -47,7 +47,7 @@ services:
MYSQL_DATABASE: ghost
MYSQL_MULTIPLE_DATABASES: activitypub
volumes:
- ${GHOST_MYSQL_DATA_LOCATION:-./data/mysql}:/var/lib/mysql
- /nassella/ghost/var-lib-mysql:/var/lib/mysql
- ./mysql-init:/docker-entrypoint-initdb.d
healthcheck:
test: mysqladmin ping -p$$GHOST_MYSQL_ROOT_PASSWORD -h 127.0.0.1
@@ -58,7 +58,7 @@ services:
networks:
- ghost_network
traffic-analytics:
ghost_traffic-analytics:
image: ghost/traffic-analytics:1.0.20@sha256:a72573d89457e778b00e9061422516d2d266d79a72a0fc02005ba6466e391859
restart: always
expose:
@@ -76,13 +76,13 @@ services:
networks:
- ghost_network
activitypub:
ghost_activitypub:
image: ghcr.io/tryghost/activitypub:1.1.0@sha256:39c212fe23603b182d68e67d555c6b9b04b1e57459dfc0bef26d6e4980eb04d1
restart: always
expose:
- "8080"
volumes:
- ${GHOST_UPLOAD_LOCATION:-./data/ghost}:/opt/activitypub/content
- /nassella/ghost/var-lib-ghost-content:/opt/activitypub/content
environment:
# See https://github.com/TryGhost/ActivityPub/blob/main/docs/env-vars.md
NODE_ENV: production
@@ -95,7 +95,7 @@ services:
depends_on:
ghost_db:
condition: service_healthy
activitypub-migrate:
ghost_activitypub-migrate:
condition: service_completed_successfully
profiles: [activitypub]
networks:
@@ -103,7 +103,7 @@ services:
# Supporting Services
tinybird-login:
ghost_tinybird-login:
build:
context: ./tinybird
dockerfile: Dockerfile
@@ -118,7 +118,7 @@ services:
tty: false
restart: no
tinybird-sync:
ghost_tinybird-sync:
# Do not alter this without updating the Ghost container as well
image: ghost:${GHOST_VERSION:-6-alpine}
command: >
@@ -134,14 +134,14 @@ services:
volumes:
- tinybird_files:/data/tinybird
depends_on:
tinybird-login:
ghost_tinybird-login:
condition: service_completed_successfully
networks:
- ghost_network
profiles: [analytics]
restart: no
tinybird-deploy:
ghost_tinybird-deploy:
build:
context: ./tinybird
dockerfile: Dockerfile
@@ -154,14 +154,14 @@ services:
- tinybird_home:/home/tinybird
- tinybird_files:/data/tinybird
depends_on:
tinybird-sync:
ghost_tinybird-sync:
condition: service_completed_successfully
profiles: [analytics]
networks:
- ghost_network
tty: true
activitypub-migrate:
ghost_activitypub-migrate:
image: ghcr.io/tryghost/activitypub-migrations:1.1.0@sha256:b3ab20f55d66eb79090130ff91b57fe93f8a4254b446c2c7fa4507535f503662
environment:
MYSQL_DB: mysql://${GHOST_DATABASE_USER:-ghost}:${GHOST_DATABASE_PASSWORD:?GHOST_DATABASE_PASSWORD environment variable is required}@tcp(ghost_db:3306)/activitypub
@@ -174,8 +174,6 @@ services:
restart: no
volumes:
caddy_data:
caddy_config:
tinybird_files:
tinybird_home:
traffic_analytics_data: