-
Notifications
You must be signed in to change notification settings - Fork 696
Expand file tree
/
Copy pathdocker-compose.ci.yml
More file actions
70 lines (65 loc) · 1.84 KB
/
Copy pathdocker-compose.ci.yml
File metadata and controls
70 lines (65 loc) · 1.84 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
70
# ============================================================
# CI 专用 Docker Compose
# 用于 Drone CI 的本地部署测试和升级测试
# 使用预构建镜像,不构建、不挂载持久化卷
# ============================================================
services:
postgres:
image: postgres:15-alpine
networks:
- default
environment:
POSTGRES_USER: clawith
POSTGRES_PASSWORD: clawith
POSTGRES_DB: clawith
healthcheck:
test: ["CMD-SHELL", "pg_isready -U clawith"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
networks:
- default
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
backend:
image: clawith-backend:${IMAGE_TAG:-new}
environment:
DATABASE_URL: postgresql+asyncpg://clawith:clawith@postgres:5432/clawith
REDIS_URL: redis://redis:6379/0
AGENT_DATA_DIR: /data/agents
AGENT_TEMPLATE_DIR: /app/agent_template
SECRET_KEY: ci-test-secret
JWT_SECRET_KEY: ci-test-jwt-secret
PROCESS_ROLE: all
AGENT_RUNTIME_COMMAND_CONCURRENCY: ${AGENT_RUNTIME_COMMAND_CONCURRENCY:-10}
AGENT_RUNTIME_V2_ENABLED: "true"
AGENT_RUNTIME_V2_AGENT_IDS: ""
AGENT_RUNTIME_V2_SOURCE_TYPES: ""
DOCKER_NETWORK: ${CLAWITH_DOCKER_NETWORK:-clawith_network}
CORS_ORIGINS: '["*"]'
networks:
- default
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
frontend:
image: clawith-frontend:${IMAGE_TAG:-new}
ports:
- "3008:3000"
environment:
VITE_API_URL: http://localhost:8000
API_UPSTREAM: backend:8000
networks:
- default
depends_on:
- backend
networks:
default:
name: ${CLAWITH_DOCKER_NETWORK:-clawith_network}