Update docker-compose.yml
This commit is contained in:
parent
d8b0913612
commit
e00b112da1
1 changed files with 3 additions and 7 deletions
|
|
@ -1,28 +1,23 @@
|
||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
claude-agent:
|
claude-agent:
|
||||||
build: .
|
build: .
|
||||||
container_name: claude-persistent-agent
|
container_name: claude-persistent-agent
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/app/data
|
- ./data:/app/data
|
||||||
- ./logs:/app/logs
|
- ./logs:/app/logs
|
||||||
- ./tasks:/app/tasks
|
- ./tasks:/app/tasks
|
||||||
- ~/.claude:/root/.claude
|
- claude-auth:/root/.claude
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
environment:
|
environment:
|
||||||
- PYTHONUNBUFFERED=1
|
- PYTHONUNBUFFERED=1
|
||||||
- CLAUDE_API_KEY=${CLAUDE_API_KEY}
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 5s
|
start_period: 60s
|
||||||
networks:
|
networks:
|
||||||
- claude-agent-network
|
- claude-agent-network
|
||||||
|
|
||||||
|
|
@ -31,6 +26,7 @@ networks:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
claude-auth:
|
||||||
data:
|
data:
|
||||||
logs:
|
logs:
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
||||||
Reference in a new issue