colpali-backend-api / hono-proxy /docker-compose.yml
vk98's picture
Initial backend deployment - Hono proxy + ColPali embedding API
5dfbe50
raw
history blame contribute delete
692 Bytes
version: '3.8'
services:
hono-proxy:
build: .
ports:
- "4000:4000"
environment:
- NODE_ENV=production
- PORT=4000
- BACKEND_URL=http://backend:7860 # Adjust based on your backend service name
- CORS_ORIGIN=http://localhost:3000
- ENABLE_CACHE=true
- CACHE_TTL=300
- RATE_LIMIT_WINDOW=60000
- RATE_LIMIT_MAX=100
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:4000/health/live"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
restart: unless-stopped
networks:
- colpali-network
networks:
colpali-network:
driver: bridge