Last active
July 17, 2022 01:50
-
-
Save jsvitor/957e29f6e7b11881639f8e42f734025a to your computer and use it in GitHub Desktop.
Created for up a service with elasticsearch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: '3' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:8.3.2 | |
environment: | |
- bootstrap.memory_lock=true | |
- ELASTIC_PASSWORD=changeme | |
- discovery.type=single-node | |
- "ES_JAVA_OPTS=-Xms2g -Xmx2g" | |
- cluster.routing.allocation.disk.threshold_enabled=false | |
- xpack.security.enabled=false | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
ports: | |
- 9200:9200 | |
networks: ['stack'] | |
kibana: | |
image: docker.elastic.co/kibana/kibana:8.3.2 | |
links: | |
- elasticsearch | |
ports: | |
- 5601:5601 | |
networks: ['stack'] | |
depends_on: | |
- elasticsearch | |
networks: | |
stack: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:8.3.2 | |
networks: | |
- elastic | |
restart: always | |
#depends_on: | |
# - airflow-worker | |
healthcheck: | |
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"] | |
interval: 30s | |
timeout: 30s | |
retries: 3 | |
environment: | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
# ELASTIC_PASSWORD: changeme | |
- xpack.security.enabled=false | |
- discovery.type=single-node | |
ports: | |
- "9200:9200" | |
- "9300:9300" | |
networks: | |
elastic: | |
external: true | |
volumes: | |
elasticsearch: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment