Setting user and group for instance of invoice-ninja running on docker

203 Views Asked by At

I have a quick question regarding the docker version of network-ninja here.

I'm running it on a docker host with a fairly complex host user / group structure and this is beginning to be problematic when setting the owner and access to mounted directories.

Several other containers that I run provide the ability to pass a variable to the instance to force it to run as a particular user / group that has previously been created on the host.

Does anyone know if this is possible with network ninja on docker?

Thanks in advance for your advice on this.

Cheers

1

There are 1 best solutions below

2
On BEST ANSWER

Currently this is not supported by the Invoice Ninja docker files. As the containers are built without any knowledge of existing users on the host systems, the app container (where Invoice Ninja runs) creates its own user called invoiceninja with it's own id 1001.

The host mounted directories then need to owned by this id - see details here.