astrbot_help / docker-compose.yml
qa1145's picture
Upload 28 files
d347708 verified
raw
history blame contribute delete
695 Bytes
# Read Agent Docker Compose 配置
version: '3.8'
services:
read-agent:
build: .
container_name: read-agent-web
ports:
- "${WEB_PORT:-8080}:8080"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- OPENAI_BASE_URL=${OPENAI_BASE_URL}
- OPENAI_MODEL=${OPENAI_MODEL}
- CODE_DIR=${CODE_DIR:-./code}
- MAX_STEPS=${MAX_STEPS:-10}
- STREAM_OUTPUT=${STREAM_OUTPUT:-true}
- DEBUG=${DEBUG:-false}
volumes:
- ${CODE_DIR:-./code}:/app/code
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3