From 7a70c495f54a2542af8c0f98e06f0b122a8980c8 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 10 Jan 2023 13:57:18 +0900 Subject: [PATCH] =?UTF-8?q?Docs:=20data=ED=8F=B4=EB=8D=94=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=EC=82=AD=EC=A0=9C,=20=ED=8F=B4=EB=8D=94=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- README.md | 13 ++++--------- elasticsearch/data/.empty | 0 3 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 elasticsearch/data/.empty 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