File size: 730 Bytes
96d104c
 
8d44598
96d104c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
30
31
32
33
34
services:
  lcn-sd:
    platform: linux/arm64
    container_name: rknn-lcm-sd
    build:
      context: .
      dockerfile: docker/Dockerfile
    image: rknn-lcm-sd:latest

    # Most reliable way to access RK3588 NPU + related devices
    privileged: true

    # Expose API
    ports:
      - "4200:4200"

    environment:
      PORT: "4200"
      NUM_WORKERS: "1"
      QUEUE_MAX: "8"
      MODEL_ROOT: "/models"

    # Models live on host; keep image small
    volumes:
      - ./model:/models:ro,Z

    restart: unless-stopped

    healthcheck:
      test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:4200/docs').read()\""]
      interval: 30s
      timeout: 5s
      retries: 5