- build kong image
docker build \
--build-arg PLUGINS="kong-url-rewrite,kong-oidc-extend" \
--tag "kong" .
- run kong container
docker run -d --name kong \
-e "KONG_DATABASE=off" \
-e "KONG_PLUGINS=oidc, kong-url-rewrite" \
-e "KONG_DECLARATIVE_CONFIG=/etc/kong/kong.yml" \
-e "KONG_PROXY_ACCESS_LOG=/dev/stdout" \
-e "KONG_ADMIN_ACCESS_LOG=/dev/stdout" \
-e "KONG_PROXY_ERROR_LOG=/dev/stderr" \
-e "KONG_ADMIN_ERROR_LOG=/dev/stderr" \
-e "KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl" \
-p 8000:8000 \
-p 8443:8443 \
-p 8001:8001 \
-p 8444:8444 \
kong:latest