增加 volume
This commit is contained in:
parent
f88adad351
commit
64bf5cbafa
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
data/
|
@ -4,8 +4,11 @@ services:
|
|||||||
restart: on-failure
|
restart: on-failure
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.3
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.3
|
||||||
container_name: elasticsearch
|
container_name: elasticsearch
|
||||||
|
volumes:
|
||||||
|
- ./data/esdata:/usr/share/elasticsearch/data
|
||||||
ports:
|
ports:
|
||||||
- 9200:9200
|
- 9200:9200
|
||||||
|
- 9300:9300
|
||||||
networks:
|
networks:
|
||||||
docker-elk:
|
docker-elk:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user