fix: elasticsearch not starting on Mac (#1621)

The `chown 1000:1000` trick mentioned in https://discuss.elastic.co/t/elastic-elasticsearch-docker-not-assigning-permissions-to-data-directory-on-run/65812/4 only works on Linux. Make the directory world writeable instead so that it works on both Mac & Linux.
This commit is contained in:
Mars Lan 2020-04-02 07:19:52 -07:00 committed by GitHub
parent eb124f839d
commit 6cb3f94b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,6 @@ mkdir -p ${DATA_STORAGE_FOLDER}
# https://discuss.elastic.co/t/elastic-elasticsearch-docker-not-assigning-permissions-to-data-directory-on-run/65812/4
mkdir -p ${DATA_STORAGE_FOLDER}/elasticsearch
sudo chown 1000:1000 ${DATA_STORAGE_FOLDER}/elasticsearch
sudo chmod 777 ${DATA_STORAGE_FOLDER}/elasticsearch
docker-compose pull && docker-compose up --build