forked from dataelement/Clawith
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (75 loc) · 1.99 KB
/
docker-compose.yml
File metadata and controls
80 lines (75 loc) · 1.99 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
71
72
73
74
75
76
77
78
79
80
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: clawith
POSTGRES_PASSWORD: clawith
POSTGRES_DB: clawith
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U clawith" ]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
volumes:
- redisdata:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
args:
CLAWITH_PIP_INDEX_URL: ${CLAWITH_PIP_INDEX_URL:-}
CLAWITH_PIP_TRUSTED_HOST: ${CLAWITH_PIP_TRUSTED_HOST:-}
restart: unless-stopped
command: ["/bin/bash", "/app/entrypoint.sh"]
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: ${SECRET_KEY:-change-me-in-production}
JWT_SECRET_KEY: ${JWT_SECRET_KEY:-change-me-jwt-secret}
CORS_ORIGINS: '["*"]'
FEISHU_APP_ID: ${FEISHU_APP_ID:-}
FEISHU_APP_SECRET: ${FEISHU_APP_SECRET:-}
DOCKER_NETWORK: clawith_network
SS_CONFIG_FILE: /data/ss-nodes.json
volumes:
- ./backend:/app
- ./backend/agent_data:/data/agents
- /var/run/docker.sock:/var/run/docker.sock
- ./ss-nodes.json:/data/ss-nodes.json:ro
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
frontend:
build: ./frontend
ports:
- "${FRONTEND_PORT:-3008}:3000"
environment:
VITE_API_URL: http://localhost:8000
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
depends_on:
- backend
volumes:
pgdata:
redisdata:
networks:
default:
name: clawith_network