berfenger / cam2mqtt

Control IP cameras through MQTT reliably. Supports ONVIF (motion) and HTTP (reolink) control APIs.
Apache License 2.0
47 stars 3 forks source link

Could not parse config file #27

Open ronnytom opened 1 year ago

ronnytom commented 1 year ago

Hello! I hope someone can help? I dont know where to copy the config.yml file with docker cp?! When i start the container it stops with the error "could not parse config file" Thank you for help :)

berfenger commented 1 year ago

You just have to bind/mount your config.yml into the container path /config.yml

If using docker compose, you have to define it as a volume:

  volumes:
    - ./config.yml:/config.yml

If using plain docker command, add -v mylocalpath/config.yml:/config.yml