No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
public/stylesheets
routes
views
.dockerignore
.gitignore
Dockerfile
LICENSE
README.md
app.js
package-lock.json
package.json

README.md

Ping API

Simply returns "pong" on /ping for GET requests and the request body on POST requests.

Docker

Build

$ docker build -t ping-api .

Run

$ docker run -d --name ping-api -p 3000:3000 ping-api

Environment variables

  • KAFKA_BROKERS: Defaults to localhost:9092
  • KAFKA_TOPIC: Defaults to ping
$ docker run -d --name ping-api -p 3000:3000 -e KAFKA_BROKERS=192.168.0.6:9092 ping-api