-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1009 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (46 loc) · 1009 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
42
43
44
45
46
47
48
49
version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
image: clawforge-backend:latest
ports:
- "3000:3000"
volumes:
- clawforge_data:/data
environment:
- CLAWFORGE_DB_PATH=/data/clawforge.db
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
restart: unless-stopped
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 128M
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
image: clawforge-frontend:latest
ports:
- "8080:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
deploy:
resources:
limits:
memory: 64M
reservations:
memory: 16M
volumes:
clawforge_data: