Hi,
the container for logstash, elasticsearch and kibana are using user:group 1000:1000 inside of the container.
If I would like to use bind mounts to link in custom configuration or the data folder, I need to give user 1000:1000 read (for config) and write (for data) permissions on the host to these folders.
What is best practice if userid 1000 is already in use? I don't want to need give the user who is already using the id on the host a new id. In centos for example the first user who is created gets userid 1000 by default. So taking id 1000 for elasticsearch may collide quite often.
So what's best practice?
- change userid in docker container to the one matching which is used for user elasticsearch on the host?
- use volumes?
2.1. I assume volumes are slower than bind mounts. Can one neglect the speed difference? What is the common difference in percent? - Any other approach
Thanks, Andreas