based on openresty/openresty
and ubergarm/openresty-nginx-jwt
- HUGE THANKS!
-
set environment variables (optional I guess)
export BASE_DIR="/some/path" export JWT_SECRET="somesecret"
-
build
docker build -t openresty-jwt $BASE_DIR/scripts/openresty
-
run
docker run --rm -it \ --name openresty-jwt \ -p 31337:31337 \ -e JWT_SECRET=$JWT_SECRET \ -v $BASE_DIR/scripts/openresty/certs:/certs \ -v $BASE_DIR/scripts/openresty/conf:/conf \ -v $BASE_DIR/scripts/openresty/logs:/logs \ -v $BASE_DIR/scripts/openresty/scripts:/scripts \ -d openresty-jwt