Docs: data폴더 생성삭제, 폴더 추가

This commit is contained in:
Jay 2023-01-10 13:57:18 +09:00
parent e8624e6c9d
commit 7a70c495f5
3 changed files with 7 additions and 10 deletions

4
.gitignore vendored
View File

@ -1,2 +1,4 @@
elasticsearch/data
elasticsearch/data/**
!elasticsearch/data/.empty

View File

@ -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

View File