Created
June 22, 2020 21:15
-
-
Save gunesmes/e5fe1213594a90d403a3f7fd39cfa408 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.6' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.6.0 | |
container_name: elasticsearch | |
environment: | |
- node.name=es01 | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: | |
nproc: 65535 | |
memlock: | |
soft: -1 | |
hard: -1 | |
cap_add: | |
- ALL | |
privileged: true | |
deploy: | |
mode: global | |
restart_policy: | |
condition: on-failure | |
delay: 5s | |
max_attempts: 3 | |
window: 120s | |
volumes: | |
- esdata:/usr/share/elasticsearch/data | |
ports: | |
- 9200:9200 | |
kibana: | |
image: docker.elastic.co/kibana/kibana-oss:6.6.0 | |
container_name: kibana | |
environment: | |
SERVER_NAME: localhost | |
ELASTICSEARCH_URL: http://elasticsearch:9200/ | |
ports: | |
- 5601:5601 | |
ulimits: | |
nproc: 65535 | |
memlock: | |
soft: -1 | |
hard: -1 | |
cap_add: | |
- ALL | |
deploy: | |
mode: global | |
restart_policy: | |
condition: on-failure | |
delay: 5s | |
max_attempts: 3 | |
window: 120s | |
nginx: | |
image: nginx:latest | |
ports: | |
- 8080:80 | |
volumes: | |
- ${PWD}/nginx-config/:/etc/nginx/conf.d/ | |
command: /bin/bash -c "nginx -g 'daemon off;'" | |
ulimits: | |
nproc: 65535 | |
volumes: | |
esdata: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment