Skip to content

Commit

Permalink
proxy!
Browse files Browse the repository at this point in the history
  • Loading branch information
kalta committed Dec 17, 2016
1 parent 9438fd6 commit b18d0dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions kibana/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ NAME=kibana
IMAGE=netcomposer/kibana:5.0.2-1

docker rm $NAME > /dev/null 2>&1
docker run --rm --name $NAME --net=host \
-e "ELASTICSEARCH_URL=http://127.0.0.1:9200" \
docker run -ti --rm --name $NAME --net=host \
-e "ELASTICSEARCH_URL=http://k2.netc.io:80/es/" \
-e "ELASTICSEARCH_USERNAME=test" \
-e "ELASTICSEARCH_PASSWORD=es" \
-e "SERVER_PORT=5601" \
$IMAGE

Expand Down
9 changes: 8 additions & 1 deletion kibana/start_service.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/bin/bash
IMAGE=netcomposer/kibana:5.0.2-1
ES="http://elastic_openresty:9200"

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


0 comments on commit b18d0dd

Please sign in to comment.