OpenHAB cloud setup on docker gives errors on CONFIG.JSON

I am trying to setup openhab cloud on docker with the instructions on:

After following the instructions and starting the container, I get the error:

app_1      | Error: Cannot find module './config.json'
app_1      |     at Function.Module._resolveFilename (module.js:470:15)
app_1      |     at Function.Module._load (module.js:418:25)
app_1      |     at Module.require (module.js:498:17)
app_1      |     at require (internal/module.js:20:19)
app_1      |     at Object.<anonymous> (/opt/openhabcloud/logger.js:11:25)
app_1      |     at Module._compile (module.js:571:32)
app_1      |     at Object.Module._extensions..js (module.js:580:10)
app_1      |     at Module.load (module.js:488:32)
app_1      |     at tryModuleLoad (module.js:447:12)
app_1      |     at Function.Module._load (module.js:439:3)

Looking in the docker-compose.yml file is:

version: '3'

services:
  app:
    image: openhab/openhabcloud-app:latest
    volumes:
    -./config.json.template:/opt/openhabcloud/config.json.template

So the filename is different. I was thinking of a typo, so I renamed it to the following line

-./config.json:/opt/openhabcloud/config.json

Then I get the error:

app_1      | Error: EACCES: permission denied, open '/opt/openhabcloud/config.json'
app_1      |     at Object.fs.openSync (fs.js:584:18)
app_1      |     at Object.fs.readFileSync (fs.js:491:33)
app_1      |     at Object.Module._extensions..json (module.js:586:20)
app_1      |     at Module.load (module.js:488:32)
app_1      |     at tryModuleLoad (module.js:447:12)
app_1      |     at Function.Module._load (module.js:439:3)
app_1      |     at Module.require (module.js:498:17)
app_1      |     at require (internal/module.js:20:19)
app_1      |     at Object.<anonymous> (/opt/openhabcloud/logger.js:11:25)
app_1      |     at Module._compile (module.js:571:32)

I am pretty sure the file permissions on the host are set correctly. The other 3 containers start without issue (mongodb, redis, traefik). I even did give config.db ‘other’ permissions (chmod 666)

Any hints what is going wrong here?

I configure the domain incorrectly. Apparently that was the reason for: Error: EACCES: permission denied. Not a very clear error :wink: