I have a Docker-Compose with the settings of Elastic and of Kibana, just you enter the other service you want, if you copy this code from here care with identation.
To climb the services is enough docker-compose up -d
Notice I left one XXXX
add the user and password settings you want. Remember that they will not run in the same container, but in a container network.
version: "2"
services:
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:7.3.1"
container_name: elasticsearch
environment:
- "discovery.type=single-node"
- ELASTIC_PASSWORD=XXXX
- xpack.security.enabled=true
volumes:
- esdata01:/usr/share/elasticsearch/data
ports:
- 9200:9200
kibana:
image: "docker.elastic.co/kibana/kibana:7.3.1"
container_name: kibana
environment:
- ELASTICSEARCH_URL="elasticsearch:9200"
- ELASTICSEARCH_USERNAME=XXXX
- ELASTICSEARCH_PASSWORD=XXXX
- xpack.security.enabled=true
links:
- elasticsearch
ports:
- 5601:5601
depends_on:
- elasticsearch
the link is broken, is giving 404
– Caio Augusto Papai
Resolvido @Caioaugustopapai origado!
– Luiz Carlos Faria
A link-only response would be more appropriate as a comment.
– Augusto Vasques