1. Elastic Search in Docker requires the kernel setting of the host machine vm.max_map_count to be set to at least 262144.
```sh
# temporarily set the value run:
sudo sysctl -w vm.max_map_count=262144
```
To apply the change permanentlye.g. on Ubuntu Server add: `vm.max_map_count = 262144`
to the file `/etc/sysctl.conf`.
(more info in the [docs](https://github.com/tubearchivist/tubearchivist#vmmax_map_count)).
2. Elasticsearch has issues with permissions, so when using bind volume, folder has to be writable by the correct user. If you don't care, just run these: