How to setup Konga using Docker

Konga is an opensource powerful GUI that uses Kong Admin API, that makes managing of Kong quite literally…. a breeze.

Today we are walking through setting up Konga using docker. We will be making use of PostgreSQL as our persistent database for Konga.

First, we want to save PostgreSQL to a permanent folder, and todo that we will be creating a folder for this sole purpose

1

mkdir-pdata

Then the next step is to create a Docker network that will house both the PostgreSQL and Konga containers so that they can easily reach each other.P.S We could have them on the default network by default, but it is better to create network separation in case you have multiple docker images of the same type running. You do not want them clashing.

1

docker network create-dbridge main-link

Then once done, we run the docker command to startup PostgreSQL using the alpine variant image and binding both the network and volume to the ones specified above. In addition to that, we set the default credentials for the database and set the name of the docker container

1

2

3

4

5

6

7

8

docker run--rm\

-ePOSTGRES_USER=konga\

-ePOSTGRES_DB=konga\

-ePOSTGRES_PASSWORD=konga\

-vdata:/var/lib/postgresql/data\

--name postgres\

-d--network main-link\

postgres:9.6-alpine

Then we need to seed the database with the Konga Schemas from the Konga image, we run the below before we start the Konga image proper.