-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
69 lines (66 loc) · 2.03 KB
/
docker-compose.dev.yml
File metadata and controls
69 lines (66 loc) · 2.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Ghost Theme Local Development Environment
# Usage: docker compose -f docker-compose.dev.yml up -d
services:
ghost:
image: ghost:6.14.0
container_name: ec-ghost-dev
restart: unless-stopped
ports:
- "2368:2368"
volumes:
# Mount theme for live editing (GitOps approach)
- ./eventually-consistent:/var/lib/ghost/content/themes/eventually-consistent
# Persist Ghost content (images, settings)
- ghost-content:/var/lib/ghost/content
environment:
NODE_ENV: development
url: http://localhost:2368
# Database
database__client: mysql
database__connection__host: mysql
database__connection__port: 3306
database__connection__user: ghost
database__connection__password: ghost
database__connection__database: ghost
database__connection__charset: utf8mb4
# Mail (optional - uses direct for dev)
mail__transport: Direct
# Logging
logging__level: info
logging__transports: '["stdout"]'
depends_on:
mysql:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:2368/ghost/api/admin/site/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
mysql:
image: mysql:8.4.8
container_name: ec-mysql-dev
restart: unless-stopped
# Configure MySQL for utf8mb4 (full unicode/emoji support)
# Note: MySQL 8.4 LTS uses caching_sha2_password by default (mysql_native_password deprecated)
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_0900_ai_ci
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ghost
MYSQL_USER: ghost
MYSQL_PASSWORD: ghost
volumes:
- mysql-data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-proot"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
ghost-content:
name: ec-ghost-content
mysql-data:
name: ec-mysql-data