Deploy docker-elasticstack with docker stack:
$ git pull
$ git branch
master
x-pack
$ git checkout -t x-pack
$ git pull
Syntax:
ELK_VERSION=6.1.0 docker stack deploy -c docker-compose.yml <stackname></stackname>
Set ELK_VERSION in .env-file
ELK_VERSION=6.1.0
to create custom docker images run
docker-compose -f docker-compose.yml up
or
docker-compose up
ELK_VERSION is Elasticstack version: 6.1.0, 6.0.1 for example.
Note: This option is ignored when deploying a stack in swarm mode with a (version 3) Compose file. The docker stack command accepts only pre-built images.
**To run ELK-STACK in docker swarm **
$ docker swarm init
$ ELK_VERSION=6.1.0 docker stack deploy -c docker-compose.yml teststack1
Note: This build option is ignored in docker-compose file when deploying a stack in swarm mode with a (version 3) Compose file. The docker stack command accepts only pre-built images.
To run docker-compose only:
$ docker-compose -f docker-compose.yml.default up
We use different network driver for docker-compose.yml.default and docker-compose.yml
Elasticsearch URL:
http://localhost:9200
Starting the stack with x-pack extension:
Try docker-compose up to create a Elastic Stack with Elasticsearch, Kibana, Logstash
Point a browser at http://localhost:5601 to see the results.
Log in with elastic / changeme.
Elasticsearch URL:
http://localhost:9200