From 6339f519d842cce278dcc890d4f1f339f3fe8b24 Mon Sep 17 00:00:00 2001 From: korrio Date: Sat, 12 Aug 2023 15:36:58 +0700 Subject: [PATCH 1/2] upgrade to kong3.4 and psql1.5 and add Kong Manager OSS --- default.env | 11 ----------- docker-compose.yml | 5 ++++- 2 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 default.env diff --git a/default.env b/default.env deleted file mode 100644 index 80e17ad..0000000 --- a/default.env +++ /dev/null @@ -1,11 +0,0 @@ -# KONG -KONG_VERSION=2.6 -KONG_ADMIN_LISTEN=0.0.0.0:8001 -KONG_PROXY_LISTEN="0.0.0.0:8000, 0.0.0.0:8443 ssl http2" -KONG_NGINX_HTTP_RESOLVER=1.1.1.1 - -# Database -POSTGRES_VERSION=13-alpine -POSTGRES_USER=kong -POSTGRES_PASSWORD=kong -POSTGRES_DB=kong diff --git a/docker-compose.yml b/docker-compose.yml index 2bfbe65..3c353ae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -37,10 +37,13 @@ services: - KONG_ADMIN_ERROR_LOG=/dev/stderr - KONG_TRUSTED_IPS=0.0.0.0/0,::/0 - KONG_REAL_IP_RECURSIVE=on + - KONG_ADMIN_GUI_PATH=/manager + - KONG_ADMIN_GUI_URL=http://127.0.0.1:8002/manager ports: - - 80:8000 + - 8000:8000 - 443:8443 - 127.0.0.1:8001:8001 + - 127.0.0.1:8002:8002 healthcheck: test: ["CMD", "kong", "health"] interval: 5s From 3d51d39cb68a6234ea1362879eac3703e8135ece Mon Sep 17 00:00:00 2001 From: korrio Date: Sat, 12 Aug 2023 15:47:42 +0700 Subject: [PATCH 2/2] add proxy to kong service to be connected from kong manager --- docker-compose.yml | 2 +- quick-start.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3c353ae..a56a7bc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,7 +31,7 @@ services: - KONG_PG_USER=${POSTGRES_USER:-kong} - KONG_PG_PASSWORD=${POSTGRES_PASSWORD:-kong} - KONG_ADMIN_LISTEN=${KONG_ADMIN_LISTEN:-127.0.0.1:8001} - - KONG_PROXY_LISTEN=${KONG_PROXY_LISTEN:-0.0.0.0:8000, 0.0.0.0:8443 ssl http2} + - KONG_PROXY_LISTEN=${KONG_PROXY_LISTEN:-0.0.0.0:8000, 0.0.0.0:8001, 0.0.0.0:8443 ssl http2} - KONG_NGINX_HTTP_RESOLVER=${KONG_NGINX_HTTP_RESOLVER:-8.8.8.8} - KONG_PROXY_ERROR_LOG=/dev/stderr - KONG_ADMIN_ERROR_LOG=/dev/stderr diff --git a/quick-start.sh b/quick-start.sh index 6b6b87b..0a2afc8 100755 --- a/quick-start.sh +++ b/quick-start.sh @@ -22,6 +22,7 @@ echo "Starting kong..." docker-compose up -d kong +echo "Kong manager OSS running http://127.0.0.1:8002/manager" echo "Kong admin running http://127.0.0.1:8001/" echo "Kong proxy running http://127.0.0.1/"