File size: 630 Bytes
2818f92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
services:
  lockedin-ai-service:
    build:
      context: .
      dockerfile: Dockerfile
    image: lockedin-ai-service:production
    env_file:
      - .env
    environment:
      ENVIRONMENT: production
      PORT: 7860
      SQLITE_DB_PATH: /data/lockedin_cache.db
    ports:
      - "7860:7860"
    volumes:
      - lockedin-cache:/data
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:7860/health', timeout=5).read()"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 20s

volumes:
  lockedin-cache: