How to run Kong API Gateway using docker containers?

I am very new to Kong API Gateway, and am currently attempting to run a Kong container with PostgreSQL as my database container.

How can i achieve this?

  • WebSharper site working locally but not in docker
  • Kubernetes Volume mountpath
  • I can't run docker daemon on ubuntu 14.04 LTS (on VPS)
  • docker deploy to docker for mac swarm mode not working, how to troubleshoot?
  • CircleCI: MySQL starts on its own even after stopping the process
  • docker: is it possible to run containers from an other container?
  • Noob FED tries to run MeanJS app on docker port mapping throws error
  • Running a simple webserver in Docker?
  • Docker Notary no trust data available
  • How are docker layer directories named?
  • Docker unable to resolve .net standard class libraries, on deploying .net core app to Docker
  • Dokku showing errors in console
  • 2 Solutions collect form web for “How to run Kong API Gateway using docker containers?”

    Did you check the following repo?

    1. Start your database:

     $ docker run -d --name kong-database \
                      -p 5432:5432 \
                      -e "POSTGRES_USER=kong" \
                      -e "POSTGRES_DB=kong" \

    2. Start Kong:

    Start a Kong container and link it to your database container, configuring the KONG_DATABASE environment variable with postgres.

    $ docker run -d --name kong \
                  --link kong-database:kong-database \
                  -e "KONG_DATABASE=postgres" \
                  -e "KONG_PG_HOST=kong-database" \
                  -p 8000:8000 \
                  -p 8443:8443 \
                  -p 8001:8001 \
                  -p 7946:7946 \
                  -p 7946:7946/udp \

    3.Verify Kong is running:

    $ curl
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.