Update docker-compose.yml

This commit is contained in:
Shlee 2025-11-21 14:27:21 +10:30 committed by GitHub
parent e1dae9c705
commit 64f10d1704
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,37 +25,37 @@ services:
volumes: volumes:
- ./redis:/data - ./redis:/data
es: # es:
restart: always # restart: always
image: docker.elastic.co/elasticsearch/elasticsearch:8.19.7 # image: docker.elastic.co/elasticsearch/elasticsearch:8.19.7
environment: # environment:
- "ELASTIC_PASSWORD=password" #Username is elastic. Do not change the username. # - "ELASTIC_PASSWORD=password" #Username is elastic. Do not change the username.
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Des.enforce.bootstrap.checks=true" # - "ES_JAVA_OPTS=-Xms512m -Xmx512m -Des.enforce.bootstrap.checks=true"
- "xpack.license.self_generated.type=basic" # - "xpack.license.self_generated.type=basic"
- "xpack.security.enabled=false" # - "xpack.security.enabled=false"
- "xpack.watcher.enabled=false" # - "xpack.watcher.enabled=false"
- "xpack.graph.enabled=false" # - "xpack.graph.enabled=false"
- "xpack.ml.enabled=false" # - "xpack.ml.enabled=false"
- "bootstrap.memory_lock=true" # - "bootstrap.memory_lock=true"
- "cluster.name=es-mastodon" # - "cluster.name=es-mastodon"
- "discovery.type=single-node" # - "discovery.type=single-node"
- "thread_pool.write.queue_size=1000" # - "thread_pool.write.queue_size=1000"
networks: # networks:
- external_network # - external_network
- internal_network # - internal_network
healthcheck: # healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"] # test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
volumes: # volumes:
- ./elasticsearch:/usr/share/elasticsearch/data # - ./elasticsearch:/usr/share/elasticsearch/data
ulimits: # ulimits:
memlock: # memlock:
soft: -1 # soft: -1
hard: -1 # hard: -1
nofile: # nofile:
soft: 65536 # soft: 65536
hard: 65536 # hard: 65536
ports: # ports:
- '127.0.0.1:9200:9200' # - '127.0.0.1:9200:9200'
web: web:
# You can uncomment the following line if you want to not use the prebuilt image, for example if you have local code changes # You can uncomment the following line if you want to not use the prebuilt image, for example if you have local code changes