Docker Compose
Docker Compose を使って他のコンテナと並んで Roboflow inference server を実行し、マルチコンテナアプリケーションを構築します。
# Roboflow Inference ServiceをDocker composeサービスとして実行する
services:
roboflow-inference-service:
image: roboflow/inference-server:cpu
ports:
- "9001:9001"
# 必要に応じて、ここに他のコンテナやサービスを追加できます、
# 以下の例で示しています;
# これによりアプリケーションの必要に応じてroboflow inferenceと複数のサービスを「compose」できます
# service as needed by your application
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
Last updated
Was this helpful?