Docker Compose
Docker Compose를 통해 다중 컨테이너 애플리케이션을 구축하기 위해 Roboflow 추론 서버를 다른 Docker 컨테이너와 함께 실행합니다.
# roboflow 추론 서비스를 Docker Compose 서비스로 실행하기"
services:
roboflow-inference-service:
image: roboflow/inference-server:cpu
ports:
- "9001:9001"
# 필요에 따라 여기에 필요한 다른 컨테이너나 서비스를 추가하세요,
# 아래 예시로 설명합니다;
# 따라서 roboflow 추론으로 여러 서비스를 "compose"할 수 있습니다
# 서비스를 애플리케이션에 필요한 대로
another-container-service:
image: curlimages/curl:8.00.1
entrypoint:
- /bin/ash
- -c
- |
while true; do
curl -s -X GET http://roboflow-inference-service:9001
sleep 5;
done
depends_on:
- roboflow-inference-service
마지막 업데이트
도움이 되었나요?