diff --git a/.gitignore b/.gitignore index ee461d0..6856dbc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ -elasticsearch/data +elasticsearch/data/** +!elasticsearch/data/.empty + diff --git a/README.md b/README.md index eb9c132..41547c2 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,10 @@ . ├── docker-compose.yml ├── elasticsearch -│ └── config -│ └── elasticsearch.yml +│ ├── config +│ │ └── elasticsearch.yml +│ └── data +│ └── .empty ├── filebeat │ └── config │ └── filebeat.yml @@ -22,13 +24,6 @@ ``` -Data 폴더 생성 -> 컨테이너 실행시에 `elasticsearch/data` 폴더가 생성되긴 하지만, elasticsearch가 죽어버림 -> 77* 권한이 필요하기때문에 애초에 폴더를 만들고서 권한 까지 바꿔주자 -```bash -mkdir elasticsearch/data && sudo chmod 770 elasticsearch/data -``` - ```bash # gerneral docker compose docker-compose up -d diff --git a/elasticsearch/data/.empty b/elasticsearch/data/.empty new file mode 100644 index 0000000..e69de29