File size: 567 Bytes
214209a
 
 
 
 
 
 
87bc571
214209a
 
87bc571
214209a
 
 
 
 
 
 
 
 
 
87bc571
214209a
 
 
 
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
version: '3.8'

services:
  api:
    build: .
    container_name: kes-hack-backend
    ports:
      - "7860:7860"
    environment:
      - API_HOST=0.0.0.0
      - API_PORT=7860
      - DEBUG=False
      - DEVICE=cpu
      - LOG_LEVEL=INFO
      - PYTHONUNBUFFERED=1
    env_file:
      - .env
    volumes:
      - ./src:/app/src
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:7860/health', timeout=5)"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s