I am trying to port my application over to docker. I am trying to figure out user management though.
What user do services run as? I would rather things not run as root, but cant seem to find much information online.
Do I need to create users in the containers? If so, what is the way to create shared user between all the containers?
As an example, say I have 3 different services that all touch the same files.
- Web (nginx)
- Queue Worker (supervisor)
- API Server (php, mostly)
Do I just chown to nobody? Do I chmod 777?