Skip to content

Commit

Permalink
Kibana on Swarm
Browse files Browse the repository at this point in the history
  • Loading branch information
kalta committed Dec 14, 2016
1 parent 9d02359 commit e6479f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kibana/build/build.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
docker build -t netcomposer/kibana:5.0.2-1 .
NAME=netcomposer/kibana:5.0.2-1
docker build -t $NAME . && docker push $NAME
2 changes: 1 addition & 1 deletion kibana/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NAME=kibana
IMAGE=netcomposer/kibana:5.0.2-1

docker rm $NAME 2>&1 > /dev/null
docker rm $NAME > /dev/null 2>&1
docker run --rm --name $NAME --net=host \
-e "ELASTICSEARCH_URL=http://127.0.0.1:9200" \
-e "SERVER_PORT=5601" \
Expand Down
6 changes: 6 additions & 0 deletions kibana/start_service.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
IMAGE=netcomposer/kibana:5.0.2-1

docker service create --name kibana --network elastic -p 5601:5601 -e "ELASTICSEARCH_URL=http://elastic:9200" -e "SERVER_PORT=5601" $IMAGE


0 comments on commit e6479f5

Please sign in to comment.