forked from ianarawjo/ChainForge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 996 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (33 loc) · 996 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
services:
chainforge:
build:
context: .
dockerfile: Dockerfile
image: chainforge/chainforge:latest
container_name: chainforge
ports:
- "8000:8000"
volumes:
# Mount data directory for persistent storage
- chainforge-data:/home/chainforge/.local/share/chainforge
environment:
- NODE_ENV=production
- FLASK_ENV=production
# Add API keys as environment variables if needed
# - OPENAI_API_KEY=${OPENAI_API_KEY}
# - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
# - COHERE_API_KEY=${COHERE_API_KEY}
# - GOOGLE_API_KEY=${GOOGLE_API_KEY}
# - DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY}
# - HUGGINGFACE_API_KEY=${HUGGINGFACE_API_KEY}
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8000 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Named volume for persistent data
volumes:
chainforge-data:
driver: local