Modified configs from Migoller - https://gitlab.com/MiGoller/ShinobiDocker
| Environment Var | Value (defaults are highlighted) |
|---|---|
| PLUGINKEY_YOLO | {random_string_of_characters} / Yolo123123 |
| YOLO_TINY | true / false |
| YOLO_MODE | host / client |
| YOLO_HOST | {ip} / localhost |
| YOLO_PORT | {Port #} / 8080 |
| NVIDIA_GPU | true / false |
--net=host/network_mode: hostis used so there are no network routing issues to/from the docker container, and ports are directly exposed from the host
docker run \
-d \
--name yolo \
--net=host \
-v </custom/configs>:/config \
-v /dev/shm:/dev/shm \
namekal/shinobi-docker:yolo-plugin
docker run \
-d \
--name yolo \
--net=host \
-e PLUGINKEY_YOLO=newkeyabc123 \
-e YOLO_TINY=false \
-e YOLO_MODE=host \
-e YOLO_PORT=8082 \
-v </custom/configs>:/config \
-v /dev/shm:/dev/shm \
namekal/shinobi-docker:yolo-plugin
conf.json instructions:9877ac48:“oldPluginConnectionMethod”:true must be defined in the configuration to allow object detection to work. (This will be temporarily needed until the new method is working)YOLO_MODE is set as client (This is the default)Modify the "pluginKeys" : {} to add the key to the array.
"pluginKeys":{
"Yolo" : "Yolo123123"
}
YOLO_MODE is set as hostAdd the plugins array if you don't already have it. Add the following object inside the array.
"plugins":[
{
"id" : "Yolo",
"https" : false,
"host" : "localhost", <Or_ip_of_the_docker_host>
"port" : 8082, <Must_be_port_defined_in_YOLO_PORT>
"key" : "Yolo123123", <Or_key_defined_in_PLUGINKEY_YOLO>
"mode" : "host",
"type" : "detector"
}
],
Content type
Image
Digest
Size
2.3 GB
Last updated
over 7 years ago
docker pull namekal/shinobi-docker:yolo-plugin