• Stars
    star
    112
  • Rank 312,240 (Top 7 %)
  • Language
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Docker-compose.yml for kong, konga and postgres using official image.

kong-konga-docker-compose

Use the latest version of kong and konga, and do not need to compile, directly pull the official image to run.

Four containers:

  • kong-database : postgres
  • kong-migrations : kong
  • kong : kong
  • konga : konga

Usage

docker-compose up -d

Configure https

Configure https as follows, and then use https protocol to access port 8443.

kong:
  ...
  volumes:
    - "./ssl:/mnt/ssl"
  environment:
    - KONG_SSL_CERT=/mnt/ssl/ssl.pem
    - KONG_SSL_CERT_KEY=/mnt/ssl/ssl.key
    ...

If you are using docker-compose-production.yml

The production environment needs to ensure security and performance. Here, the production environment configuration file created in a simple scenario is for reference only. If you have a better way, please let me know.

1. use tls certificate

Create a folder ssl under the same level folder of docker-compose-production.yml, built-in tls certificate file, the specific name can be modified in the yaml file, the default is ssl.key and ssl.pem.

2. create network

Create a network for kong, and then connect the business nodes through the intranet. The default network name here is kong-net, you can create it with the following command.

docker network create kong-net

3. run

docker-compose up -d

4. register service and route of konga

In the production version, the port of konga is not exposed, so that konga's request also distributes traffic on kong. So here you need to manually request kong's management api for registration.

Install curl on any node in the network where kong is located, and then execute the following command.When both requests return HTTP/1.1 201 Created, the registration is successful.

# register service
curl -i -X POST --url http://kong:8001/services/ --data 'name=konga' --data 'url=http://konga:1337'
# register route
curl -i -X POST --url http://kong:8001/services/konga/routes --data 'name=konga' --data 'paths[]=/konga'

Then, go to the browser to visit your web address. The first time you log in to konga, you need to visit the following address.The key is to add the path of /konga, make it /konga/register path, the first time the /register path will be loaded directly by default.

https://<your-domain-name>/konga/register#!/services

Official documentation

install kong using docker: https://docs.konghq.com/install/docker/

More Repositories

1

RedisFish

🌈A convenient, cross-platform, and content-focused redis GUI client. Maybe you will like it.
Vue
265
star
2

Blog

个人技术博客。
103
star
3

i3-wm-config

My i3-wm configuration file.
Shell
78
star
4

blackphantom

Python online ide.
JavaScript
16
star
5

Vim-config

My vim configuration file.
Vim Script
16
star
6

coolCaptcha

A cool captcha.Customizable themes to match website style and enhance user experience.🥳🥳🥳
Go
13
star
7

Swallowtail

给图片添加自定义水印的各平台客户端
Vue
6
star
8

bot_named_moon

Python
6
star
9

i3window_sw

Vim plugin for switching window between vim and i3-wm.
Python
4
star
10

QingKe

No internet connection, no cloud, only local PC-side password manager application.
Vue
3
star
11

pretend_to_be_a_gameped

让手机成为游戏手柄。
Vue
3
star
12

resetful-gin-demo

gin的resetful案例
Go
3
star
13

kuari.github.io

HTML
2
star
14

daily-backups

My daily backup.
Python
2
star
15

simple_vim

简单的vimrc文件,方便非自己环境下使用vim
Vim Script
2
star
16

to-do-together

A simple and powerful todo for a common view of the todo list.
Vue
2
star
17

kuari-pdfkit

pdfkit in docker
Dockerfile
2
star
18

resetful-flask-template

可直接上手开发的resetful flask后端模板
Python
2
star
19

efk-docker-compose

Collect Container Logs with EFK (Elasticsearch + Filebeat + Kibana) via office images.
Shell
1
star
20

kong

kuari-kong
Dockerfile
1
star
21

poetry-tab

随机显示诗句的tab页插件
JavaScript
1
star
22

PasswordManager

a command-line-based password manager.
JavaScript
1
star
23

rePass_support

rePass技术支持
1
star
24

Xfce4-terminal-colors-for-transparent

A theme for transparent xfce4-terminal.
1
star
25

Potted_Grass

CSS
1
star
26

ubuntu

kuari/ubuntu
Vim Script
1
star
27

onlineJudge

online judge
Vue
1
star
28

Note

摘抄
Vue
1
star
29

Landmarks

官方swift ui教程项目
Swift
1
star
30

SwiftUISearchBar

swift ui search bar
Swift
1
star
31

code_template

JavaScript
1
star
32

flaskr

flask dockerfile
Dockerfile
1
star
33

kuari

1
star
34

uniapp-request

uniapp网络请求
JavaScript
1
star
35

UltiSnips

my UltiSnips
1
star
36

simple-tab

A very simple Chrome tab page extension.
CSS
1
star
37

js-ping

Native js that can be used for h5 to detect the connectivity of the target address
JavaScript
1
star