-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.ghost.yml
More file actions
39 lines (33 loc) · 1.03 KB
/
docker-compose.ghost.yml
File metadata and controls
39 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: '3.8'
services:
ghost:
image: ghost:5-alpine
container_name: ghost-cms
restart: unless-stopped
ports:
- "8009:2368"
environment:
# Basic Ghost configuration
NODE_ENV: production
# URL configuration - update this for local testing
url: ${GHOST_URL:-http://localhost:8009}
# Mail configuration for Mailcow
mail__transport: SMTP
mail__options__host: ${MAIL_HOST}
mail__options__port: ${MAIL_PORT}
mail__options__secure: ${MAIL_SECURE}
mail__from: ${MAIL_FROM}
mail__options__auth__user: ${MAIL_USER}
mail__options__auth__pass: ${MAIL_PASSWORD}
volumes:
# Persistent volume for Ghost data (content + SQLite database)
- ghost-data:/var/lib/ghost/content
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:2368/ghost/api/admin/site/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s
volumes:
ghost-data:
driver: local