깃
1. 깃 클론
클라이언트 도커 실행:8080
2. 도커 실행
백엔드 도커 실행:9090
3. 먼저 easyocr 빌드
4. docker-compose 파일 수정
version: "3.8"
services:
easyocr:
container_name: easyocr
image: heartexlabs/label-studio-ml-backend:easyocr-master
build:
context: .
args:
TEST_ENV: ${TEST_ENV}
environment:
- BASIC_AUTH_USER=
- BASIC_AUTH_PASS=
- LOG_LEVEL=DEBUG
- LANG_LIST=ko,en
- WORKERS=1
- THREADS=8
- MODEL_DIR=/data/models
'localhost' as it does not work within Docker containers.
'http://' or 'https://' for the URL always.
'ifconfig' (Linux/Mac) or 'ipconfig' (Windows).
- LABEL_STUDIO_URL=http://host.docker.internal:8080
- LABEL_STUDIO_API_KEY='!!!!put your api key here!!!!!'
ports:
- "9090:9090"
volumes:
- "./data/server:/data"
- "./data/.file-cache:/data/models/.file-cache"
5. docker compose up