toxuin / mdns-tunneller

Tunnels two (or more) mDNS domains together
Other
117 stars 9 forks source link

Docker config location #7

Closed redstorm1 closed 2 years ago

redstorm1 commented 2 years ago

docker run -v your_config_file.yml:/app/config/local.yml -p 42069:42069 toxuin/mdns-tunneller

I tried initially to use the docker image but i could not get it to pickup and use my local.yml, could you provide some more detail on setting up the docker config file?

toxuin commented 2 years ago

You'd either need to provide a full path to your config file or use $PWD as the pointer to current directory.

For example, for me config file lives in /home/toxuin/mdns-tunneller/config.yml. I can either start the container with docker run -v /home/toxuin/mdns-tunneller/config.yml:/app/config/local.yml ... or cd /home/toxuin/mdns-tunneller docker run -v $PWD/config.yml:/app/config/local.yml ...

redstorm1 commented 2 years ago

perfect thanks, for the life of me i couldn't get the path right initially.

its working well enough that the remote sensors can find the server and report so making the config more robust to continue on reboot.