diff --git a/README.md b/README.md index f8cbab9..bdcee9e 100644 --- a/README.md +++ b/README.md @@ -500,6 +500,7 @@ A collection of delicious docker recipes. - [x] danielgatis/rembg - [x] datarhei/restreamer - [x] restic/rest-server +- [x] roboflow/roboflow-inference-server-cpu - [x] rocker/rstudio - [x] rocket.chat - [x] rundeck/rundeck diff --git a/inference/README.md b/inference/README.md new file mode 100644 index 0000000..1909fb8 --- /dev/null +++ b/inference/README.md @@ -0,0 +1,24 @@ +inference +========= + +[Inference][1] turns any computer or edge device into a command center for your computer vision projects. + +```bash +$ docker compose up -d + +$ curl -X POST "http://localhost:9001/infer/workflows/roboflow-docs/model-comparison" \ + -H "Content-Type: application/json" \ + -d '{ + "api_key": "", + "inputs": { + "image": { + "type": "url", + "value": "https://media.roboflow.com/workflows/examples/bleachers.jpg" + }, + "model1": "yolov8n-640", + "model2": "yolov11n-640" + } + }' +``` + +[1]: https://github.com/roboflow/inference/tree/main diff --git a/inference/docker-compose.yml b/inference/docker-compose.yml new file mode 100644 index 0000000..a54f408 --- /dev/null +++ b/inference/docker-compose.yml @@ -0,0 +1,15 @@ +services: + inference: + image: roboflow/roboflow-inference-server-cpu:latest + ports: + - "9001:9001" + volumes: + - ./data:/tmp:rw + security_opt: + - no-new-privileges + cap_drop: + - ALL + cap_add: + - NET_BIND_SERVICE + read_only: true + restart: unless-stopped