-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 1.19 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
40
41
services:
ghost:
image: ghost:5-alpine
restart: unless-stopped
container_name: ghost-cms
ports:
- "8009:2368"
environment:
# Use production mode for proper URL handling
NODE_ENV: production
# Database configuration for SQLite
database__client: sqlite3
database__connection__filename: /var/lib/ghost/content/data/ghost.db
database__useNullAsDefault: 'true'
database__debug: 'false'
# Site configuration - update this to your production URL
url: ${GHOST_URL:-http://localhost:8009}
# Logging
logging__level: info
logging__transports: '["stdout"]'
# Admin URL configuration
admin__url: ${GHOST_ADMIN_URL:-http://localhost:8009}
volumes:
# Single volume for all Ghost data
- ghost-data:/var/lib/ghost/content
# Custom themes
- ./themes:/var/lib/ghost/content/themes
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8009/ghost/api/admin/site/"]
interval: 30s
timeout: 5s
retries: 5
start_period: 60s # Give more time to start
volumes:
ghost-data:
networks:
default:
name: ghost-network