darklynx / request-baskets

HTTP requests collector to test webhooks, notifications, REST clients and more ...
https://rbaskets.in
MIT License
351 stars 51 forks source link

Running using docker run and setting a custom master token #62

Closed alexjamesbrown closed 4 years ago

alexjamesbrown commented 4 years ago

How can this be run using docker run, but set a custom token?

I'm trying along the lines of

docker run -p 55555:55555 darklynx/request-baskets request-baskets -token "my-token"

darklynx commented 4 years ago

using environment variable, see: https://github.com/darklynx/request-baskets/blob/master/docker/entrypoint.sh#L38

so, you can use something like that:

$ docker run -p 55555:55555 -e TOKEN=my-token darklynx/request-baskets