Skip to content

Instantly share code, notes, and snippets.

@gustavohenrique
Created April 15, 2018 01:07
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 gustavohenrique/88e506d5aa5a88cbbd2345453df5569e to your computer and use it in GitHub Desktop.
Save gustavohenrique/88e506d5aa5a88cbbd2345453df5569e to your computer and use it in GitHub Desktop.
Run Kong API gateway and Konga in Docker
docker run -d --name kong --link postgres -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=postgres" -e "KONG_CASSANDRA_CONTACT_POINTS=postgres" -e KONG_PG_USER=admin -e KONG_PG_DATABASE=mydb -e KONG_PG_PASSWORD=password -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_LISTEN_SSL=0.0.0.0:8444" -p 8000:8000 -p 8443:8443 -p 8001:8001 -p 8444:8444 kong:latest
docker run -p 1337:1337 --link kong --link postgres --name konga -e "NODE_ENV=production" -e "DB_ADAPTER=postgres" -e "DB_HOST=postgres" -e "DB_PORT=5432" -e "DB_USER=admin" -e "DB_PASSWORD=password" -e "DB_DATABASE=mydb" pantsel/konga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment