Open t3easy opened 2 years ago
Distinct users are only required for isolation, but you already run separate containers which do that, so why the additional users? A daemon doesn't care as which unprivileged user it was started, so why not just the existing user (www-data)?
The Docker Image should add the same group like the
Install from Source
documentation. https://icinga.com/docs/icinga-web-2/latest/doc/02-Installation/07-From-Source/#preparing-icinga-web-2-setupAlso it would be useful to create the users for the daemons like director, vspheredb, x509. This would make the image better extendable for the daemon services.
At the moment, I do something like
with the Dockerfile:
If users, group, home folders and run folders already existed, it would be enough to override the user, entrypoint and command in the docker-compose.yml and don't require an Dockerfile and a build step.