23 lines
615 B
YAML
23 lines
615 B
YAML
version: '3.9'
|
|
services:
|
|
elasticsearch:
|
|
image: 'docker.elastic.co/elasticsearch/elasticsearch:8.17.0'
|
|
container_name: elasticsearch.node01
|
|
restart: always
|
|
hostname: elasticsearch.node01.maison
|
|
volumes:
|
|
- '/var/lib/docker/volumes/docker-elasticsearch/ES_data/:/usr/share/elasticsearch/data'
|
|
- '/var/lib/docker/volumes/docker-elasticsearch/config/:/usr/share/elasticsearch/config/'
|
|
ports:
|
|
- '9300:9300'
|
|
- '9200:9200'
|
|
ulimits:
|
|
memlock:
|
|
hard: -1
|
|
soft: -1
|
|
environment:
|
|
- bootstrap.memory_lock=true
|
|
tty: true
|
|
stdin_open: true
|
|
|