Docker Compose
Roboflow inference server を他の docker コンテナと並行して実行し、Docker Compose を使ってマルチコンテナアプリケーションを構築します。
# roboflow Inference Service を Docker compose サービスとして実行する"
services:
roboflow-inference-service:
image: roboflow/inference-server:cpu
ports:
- "9001:9001"
# 必要に応じて、ここに他のコンテナやサービスを追加してください、
# 以下の例で示しています;
# そのため、roboflow inference と複数のサービスを "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
最終更新
役に立ちましたか?