Skip to content

Instantly share code, notes, and snippets.

@jesusjavierdediego
Last active July 3, 2022 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesusjavierdediego/d3bc37848fdb36061afdd52e94dfe03a to your computer and use it in GitHub Desktop.
Save jesusjavierdediego/d3bc37848fdb36061afdd52e94dfe03a to your computer and use it in GitHub Desktop.
#!/bin/bash
docker run -d --name kong-gateway \
--network=kong-net \
-v "$(pwd):<YOUR PATH HERE>/kong" \
-e "KONG_DATABASE=off" \
-e "KONG_DECLARATIVE_CONFIG=<YOUR PATH HERE>/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" \
-e "KONG_ADMIN_GUI_URL=http://localhost:8002" \
-e "KONG_LICENSE_PATH=<YOUR PATH HERE>/license.json" \
-p 8000:8000 \
-p 8443:8443 \
-p 8001:8001 \
-p 8444:8444 \
-p 8002:8002 \
-p 8445:8445 \
-p 8003:8003 \
-p 8004:8004 \
kong/kong-gateway:2.8.1.0-alpine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment