mirror of
https://github.com/codeaashu/claude-code.git
synced 2026-04-08 22:28:48 +03:00
29 lines
755 B
YAML
29 lines
755 B
YAML
services:
|
|
claude-web:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile
|
|
ports:
|
|
- "${PORT:-3000}:3000"
|
|
environment:
|
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
|
|
- AUTH_TOKEN=${AUTH_TOKEN:-}
|
|
- MAX_SESSIONS=${MAX_SESSIONS:-5}
|
|
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-}
|
|
volumes:
|
|
# Persist Claude's config and session data across restarts
|
|
- claude-data:/home/claude/.claude
|
|
tmpfs:
|
|
# PTY processes write temp files here; no persistent storage needed
|
|
- /tmp:mode=1777
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
claude-data:
|