When working with the Konga Docker image, it is important to provision the admin user account and establish a connection with Kong for smooth operation. In this article, we will guide you through the steps to accomplish this.
Provisioning the Admin User Account
The admin user account is essential for managing Konga and its configurations. To provision the admin user account, follow these steps:
- Start by running the Konga Docker image using the following command:
- Open your preferred web browser and navigate to
http://localhost:1337. - You will be prompted to create an admin user account. Fill in the required information, such as username, email, and password, and click on the "Register" button.
- Once registered, you will be redirected to the Konga login page. Enter your credentials and click on the "Sign In" button to access the Konga admin dashboard.
docker run -p 1337:1337 pantsel/konga
Establishing a Connection with Kong
To establish a connection with Kong, you need to provide the necessary details in the Konga admin dashboard. Follow these steps:
- After logging into the Konga admin dashboard, click on the "Connections" tab on the left-hand side menu.
- Click on the "Add Connection" button to create a new connection.
- Fill in the required details for the Kong connection, such as name, host, port, and protocol. If you are running Kong on your local machine, the default values are usually:
- Click on the "Save" button to create the Kong connection.
- You will now see the newly created connection listed under the "Connections" tab. You can click on the connection name to edit or delete it if needed.
| Field | Value |
|---|---|
| Name | Local Kong |
| Host | localhost |
| Port | 8000 |
| Protocol | http |
Congratulations! You have successfully provisioned the admin user account and established a connection with Kong using the Konga Docker image. You can now start managing your Kong API Gateway with ease.
References
| Source | Link |
|---|---|
| Konga GitHub Repository | https://github.com/pantsel/konga |
| Kong Official Documentation | https://docs.konghq.com/ |