Skip to content

Small ExpressJS API to visually test Docker Swarm Traefik load balancing along with REDIS and Consul KV support

Notifications You must be signed in to change notification settings

tmackness/expressjs-docker-tester

Repository files navigation

ExpressJS API To Test Docker Swarm + Traefik + Consul + REDIS + ELK

This is a basic API to test getting a Swarm stack up and running with the following services:

  • Docker Swarm
  • Traefik
  • Consul (on host)
  • REDIS
  • Elastic APM

Endpoints

/

Shows:

  • hostname
  • container ip (if pulls from correct interface eth0-eth3) - set to eth2

/redis

Gives you info on using query param e.g. ?key=some-value-here

/redis?key=any-value-here

Should output the query value from both REDIS and Consul KV.

/error

Will only see "Server error" but should see the error info in Elastic APM UI.

About

Small ExpressJS API to visually test Docker Swarm Traefik load balancing along with REDIS and Consul KV support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published