Researcher / docker-compose.yml
amarck's picture
Add HF Spaces support, preference seeding, archive search, tests
430d0f8
raw
history blame contribute delete
662 Bytes
services:
researcher:
build: .
ports:
- "9090:8888"
volumes:
- ./data:/app/data
environment:
- PORT=8888
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- GITHUB_TOKEN=${GITHUB_TOKEN}
- PYTHONUNBUFFERED=1
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8888/api/status')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
deploy:
resources:
limits:
memory: 2g