-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-fixed.yml
More file actions
39 lines (37 loc) · 1.01 KB
/
docker-compose-fixed.yml
File metadata and controls
39 lines (37 loc) · 1.01 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
services:
ghost:
image: ghost:5-alpine
restart: unless-stopped
container_name: ghost-cms-prod
ports:
- "2368:2368"
environment:
# Force production mode
NODE_ENV: production
# Database configuration
database__client: sqlite3
database__connection__filename: /var/lib/ghost/content/data/ghost.db
# Paths configuration
paths__contentPath: /var/lib/ghost/content
# Site configuration
url: http://localhost:2368
# Admin configuration
admin__url: http://localhost:2368
# Logging
logging__level: info
logging__transports: '["stdout"]'
volumes:
# Persistent data volume
- ghost-content:/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: 5
start_period: 60s
volumes:
ghost-content:
driver: local
networks:
default:
name: ghost-network