Created
September 9, 2018 10:26
-
-
Save thinmy/3f9f048dacae031456de93a1389f1489 to your computer and use it in GitHub Desktop.
Docker Swarm Elasticsearch + Kibana with nginx-proxy
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:6.4.0 | |
ports: | |
- 9200:9200 | |
- 9300:9300 | |
environment: | |
- "cluster.name=docker-cluster" | |
- "discovery.type=single-node" | |
- "ES_JAVA_OPTS=-Xmx256m -Xms256m" | |
- "VIRTUAL_HOST=${ES_FQDN}" | |
- "VIRTUAL_PORT=9200" | |
- "SERVER_NAME=${ES_FQDN}" | |
volumes: | |
- esdata1:/usr/share/elasticsearch/data | |
kibana: | |
image: docker.elastic.co/kibana/kibana:6.4.0 | |
ports: | |
- 5601:5601 | |
depends_on: | |
- elasticsearch | |
links: | |
- elasticsearch | |
environment: | |
- "VIRTUAL_HOST=${KB_FQDN}" | |
- "VIRTUAL_PORT=5601" | |
- "server.name=${KB_FQDN}" | |
- "xpack.monitoring.ui.container.elasticsearch.enabled=true" | |
- "elasticsearch.url=http://elasticsearch:9200" | |
- "server.host=0" | |
volumes: | |
database: | |
esdata1: | |
networks: | |
default: | |
external: | |
name: nginx-proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment