-
As readme describes to mount the docker compose volume:
But volumes can't mout to a file! So then /carconnectivity.json is created as a folder inside the container... So, I tried the following, I put in an ENV for different config file:
and I set my volume to:
But the configuration file won't load either:
The volume must be an absolute path. But carconnectivity-mqtt tries to load the configfile from the root? Has anyone got this working in docker-compose? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Found it! It is not possible to mount a file, only a volume in docker compose. So I changed the example docker-compose.yml to this:
That solved it for me :-) |
Beta Was this translation helpful? Give feedback.
-
And to be complete (what I overlooked): The two error messages for not finding/loading your config file is different in 1 word: 'Can't find configuration file' means that the config file is not found. |
Beta Was this translation helpful? Give feedback.
Found it! It is not possible to mount a file, only a volume in docker compose. So I changed the example docker-compose.yml to this:
That solved it for me :-)