diff --git a/shinobi/README.md b/shinobi/README.md index 9fabe27..ff706c2 100644 --- a/shinobi/README.md +++ b/shinobi/README.md @@ -1,5 +1,5 @@ # WIP -Not finished yet. Docker-compose was generated by the follow script below. You should install shinobi via the script below. Not the docker-compose that was shown further down. +Docker-compose was generated by the follow script below. You should install shinobi via the script below. The docker-compose.yml shown below is just an example and may not work for you. # ShinobiInstall.sh ``` @@ -107,16 +107,14 @@ shinobi.yourdomain.com { ``` # docker-compose.yml +Notes: No tensorflow option. Use script above if you want that feature. ``` version: "3" services: shinobi: image: shinobisystems/shinobi:dev - container_name: Shinobi - environment: -# - PLUGIN_KEYS={"Tensorflow":"KEYGENERATEDBY SCRIPT!!!!"} -# - SSL_ENABLED=false + container_name: shinobi volumes: - ./config:/config - ./customAutoLoad:/home/Shinobi/libs/customAutoLoad @@ -125,22 +123,37 @@ services: - ./plugins:/home/Shinobi/plugins - /dev/shm/Shinobi/streams:/dev/shm/streams - /etc/localtime:/etc/localtime:ro -# ports: -# - 8080:8080 - restart: unless-stopped - - shinobiplugintensorflow: - image: shinobisystems/shinobi-tensorflow:latest - container_name: shinobi-tensorflow - environment: -# - PLUGIN_KEY=KEYGENERATEDBY SCRIPT!!!! - - PLUGIN_HOST=Shinobi - volumes: - - /home/taidao/Shinobi/docker-plugins/tensorflow:/config restart: unless-stopped + ports: + - "521:521" networks: default: external: name: caddy_net -``` \ No newline at end of file +``` + +# Gotchas and Whys +Why did I do ports 521:521? Well I wanted to enable FTP inside the docker with port 521 open (see below). After that I port forwarded on my router to open 521 to my docker host machine. + +# shinobi/config/conf.json + +Here I added the following lines to conf.json to enable FTP. +``` + "dropInEventServer": true, + "ftpServer": true, + "ftpServerPort": 521, + "dropInEventsDir": "/dev/shm/streams/dropInEvents", + "thisIsDocker": true, +``` + +# Camera specific notes +You may need to port forward RTSP or RTMP ports for your cameras. + +# Reolink Specific +rtmp://[USERNAME]:[PASSWORD]@CAMERAIPADDRESS:PORT/bcs/channel0_main.bcs?token=sdasdase&channel=0&stream=0&user=[USERNAME]&password=[PASSWORD] +Token value entered doesn't matter just need to put something. Only lines before /bcs and after user= need to be changed. + +rtsp://[USERNAME]:[PASSWORD]@CAMERAIPADDRESS:PORT + +