Published on

Run Kibana on Docker Swarm with Traefik



We will create a Kibana Service on Docker Swarm, that will sit behind a Traefik Reverse Proxy.

Create the Overlay Network:

$ docker network create --driver overlay appnet

Create the Traefik Service:

$ docker service create \
--name traefik \
--constraint 'node.role==manager' \
--publish 80:80 \
--publish 443:443 \
--publish 8080:8080 \
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
--network appnet \
traefik:camembert \
--docker --docker.swarmmode  \ \ \
--logLevel=DEBUG \

Set DNS:

Set a wildcard * to resolve to, where resolves to your swarm addresses

Create Kibana:

Create a Kibana Service and set the ELASTICSEARCH_URL to your External Elasticsearch Endpoint, take note that it uses port 9200 by default.

$ docker service create \
--name kibana \
--label 'traefik.port=5601' \
--network appnet \
--env \

Access Kibana:

Your Kibana endpoint will be available at:


Thank You

Thanks for reading, feel free to check out my website, feel free to subscribe to my newsletter or follow me at @ruanbekker on Twitter.

Buy Me A Coffee