meltaxa / solariot

Leverage your IoT enabled Solar PV Inverter to stream your solar energy usage data to a real time dashboard.
https://solariot.live
MIT License
210 stars 71 forks source link

Adding in the custom user to the Dockerfile broke existing permissions #72

Closed michael-robbins closed 2 years ago

michael-robbins commented 2 years ago

Just noticed my solariot image has been crashing in a loop since the introduction of the custom user in the dockerfile:

RUN addgroup -g 2000 solariot && adduser -D -u 2000 -G solariot solariot

Just worth maybe updating the doco/calling out that if the user is 'mounting' in the config file from the Docker host, they'll have to ensure the permissions are correct on the config file.

michael-robbins commented 2 years ago

Fixed this by making the config file owned by 2000:2000 then I can still restrict the reading of the config file on the Docker host while allowing the container to be able to read the file.