QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
247 stars 39 forks source link

Not connecting to the mqtt server #208

Closed Roei639 closed 5 months ago

Roei639 commented 5 months ago

Hello, neolink does not connect to the mqtt server, there is no error in the blog.

docker-compose:

  neolink:
    image: quantumentangledandy/neolink:latest
    container_name: neolink
    ports:
      - 8556:8554
    volumes:
      - /docker/docker-mounts/neolink/neolink.toml:/etc/neolink.toml
    restart: unless-stopped

configuration neolink.toml:

bind = "0.0.0.0"
[mqtt]
broker_addr = "10.100.102.253" # Address of the mqtt server
port = 1883 # mqtt servers port
credentials = ["myuser", "mypassword"] # mqtt server login details

[[cameras]]
name = "namecamera"
username = "xxxxx"
password = "xxxxx"
uid = "xxxxxxx"
QuantumEntangledAndy commented 5 months ago

By default the docker starts the rtsp server. Please edit the docker CMD to either start the mqtt or the rtsp-mqtt commands

Roei639 commented 5 months ago

By default the docker starts the rtsp server. Please edit the docker CMD to either start the mqtt or the rtsp-mqtt commands

How do you perform the operation?

QuantumEntangledAndy commented 5 months ago

Look at the documentation for docker compose. Specifically the command option. It will let you run any command inside the container. Change it to something like

neolink mqtt --config /etc/neolink.toml