advancingu/SfDocker

Mounting the volume as a non-root user

ltarasiewicz opened this issue · 2 comments

Hello,

First of all, thank you for a very well-thought Docker/Symfony repository.

My question is how can I mount the application volume so that it is owned by a user different than root.

I've already created an additional user by running

RUN groupadd -r luqo33 && useradd -r -g luqo33 luqo33 in the Dockerfile for worker-base.

What is the best method to mount the application directory so that it is owned by luqo33:www-data ?

Sorry for the late reply. Can you explain why you would need a different owner? Adding groups or users is not something that would typically be done inside a Docker container in this setup.

Closing due to inactivity.