Sign inSign up

sllwakeup/rapidocr

By sllwakeup

Updated 3 months ago

ocr

Image
0

1.0K

sllwakeup/rapidocr repository overview

services:
  rapidocr:
    image: sllwakeup/rapidocr:latest
    container_name: iot-rapidocr
    restart: unless-stopped
    environment:
      - TZ=Asia/Shanghai
      - LANG=C.UTF-8
      - LC_ALL=C.UTF-8
      - RAPIDOCR_TIMEOUT=${RAPIDOCR_TIMEOUT:-30}
      - RAPIDOCR_USE_CLS=${RAPIDOCR_USE_CLS:-true}
    ports:
      - "${RAPIDOCR_HOST_PORT:-8060}:${RAPIDOCR_CONTAINER_PORT:-8080}"
    healthcheck:
      test: ["CMD-SHELL", "python - <<'PY'\nimport urllib.request\nurllib.request.urlopen('http://127.0.0.1:${RAPIDOCR_CONTAINER_PORT:-8080}/health', timeout=5)\nPY"]
      interval: 30s
      timeout: 10s
      retries: 5
      start_period: 120s
    networks:
      - rapidocr-network

networks:
  rapidocr-network:
    driver: bridge
    name: rapidocr-network

Tag summary

Content type

Image

Digest

sha256:a4abefb07

Size

294.9 MB

Last updated

3 months ago

docker pull sllwakeup/rapidocr