File size: 692 Bytes
5dfbe50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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