-
-
Notifications
You must be signed in to change notification settings - Fork 284
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
41 lines (39 loc) · 984 Bytes
/
docker-compose.dev.yaml
File metadata and controls
41 lines (39 loc) · 984 Bytes
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:
postgres:
image: postgres:18
container_name: claude-code-hub-db-dev
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: claude_code_hub
TZ: Asia/Shanghai
PGTZ: Asia/Shanghai
volumes:
# 复用现有 Postgres 数据卷,确保不影响原数据
- db_dev_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d claude_code_hub"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
redis:
image: redis:7-alpine
container_name: claude-code-hub-redis-dev
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- ./data/redis:/data
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
start_period: 5s
volumes:
db_dev_data: