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?

  • Automatically mounting host folders other than c:\Users in Docker images in Windows
  • Suse Linux docker file
  • Using mysql image from docker
  • Docker support - Google App Engine (Java)
  • Restrict system calls inside docker container
  • Mount linux image in docker container
  • Should docker image be bundled with code?
  • Docker inside VirtualBox
  • Deploying multi-docker local setup to AWS using Elastic Beanstalk
  • Error when test chaincode_example02.go in docker
  • how to list Docker images with Vagrant and Kubernetes
  • docker of solr and nutch working together?
  • 2 Solutions collect form web for “How to run Kong API Gateway using docker containers?”

    Did you check the following repo?

    https://github.com/Mashape/docker-kong

    1. Start your database:

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

    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 \
                  kong
    

    3.Verify Kong is running:

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