惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - Franky
有赞技术团队
有赞技术团队
Last Week in AI
Last Week in AI
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements
雷峰网
雷峰网
T
Tor Project blog
博客园_首页
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Register - Security
The Register - Security
T
The Blog of Author Tim Ferriss
Recorded Future
Recorded Future
V
Vulnerabilities – Threatpost
Project Zero
Project Zero
J
Java Code Geeks
AWS News Blog
AWS News Blog
Security Latest
Security Latest
Spread Privacy
Spread Privacy
T
Threatpost
博客园 - 三生石上(FineUI控件)
I
Intezer
G
Google Developers Blog
Scott Helme
Scott Helme
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The Hacker News
The Hacker News
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
NISL@THU
NISL@THU
A
Arctic Wolf
F
Full Disclosure
P
Proofpoint News Feed
G
GRAHAM CLULEY
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
N
Netflix TechBlog - Medium
C
Cybersecurity and Infrastructure Security Agency CISA
T
Threat Research - Cisco Blogs
B
Blog
IT之家
IT之家
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
Know Your Adversary
Know Your Adversary

docker on 打工人日志

DockerHub 加速镜像部署 - 使用cloudflare 代理 docker的零停机部署 清理Docker容器日志 contained 安装及使用 docker 命令(2) 清理Docker的container,image与volume docker 和 docker-compose 安装 搭建docker registry 镜像仓库 docker image镜像上传 docker进阶使用
docker 安装kong 网关
2021-12-22 · via docker on 打工人日志

docker 安装 kong 网关

建立数据库

  1. 创建网络
1docker network create kong-net
  1. 建立数据库
1docker run -d --name kong-database \
2  --network=kong-net \
3  -p 5432:5432 \
4  -e "POSTGRES_USER=kong" \
5  -e "POSTGRES_DB=kong" \
6  -e "POSTGRES_PASSWORD=kong123" \
7  postgres:9.6
  1. 创建 kong 数据
1docker run --rm --network=kong-net \
2  -e "KONG_DATABASE=postgres" \
3  -e "KONG_PG_HOST=kong-database" \
4  -e "KONG_PG_PASSWORD=kong123" \
5  -e "KONG_PASSWORD=kong123" \
6  kong:latest kong migrations bootstrap

创建 kong

  1. 创建 kong gateway
 1  docker run -d --name kong \
 2  --network=kong-net \
 3  -e "KONG_DATABASE=postgres" \
 4  -e "KONG_PG_HOST=kong-database" \
 5  -e "KONG_PG_USER=kong" \
 6  -e "KONG_PG_PASSWORD=kong123" \
 7  -e "KONG_CASSANDRA_CONTACT_POINTS=kong-database" \
 8  -e "KONG_PROXY_ACCESS_LOG=/dev/stdout" \
 9  -e "KONG_ADMIN_ACCESS_LOG=/dev/stdout" \
10  -e "KONG_PROXY_ERROR_LOG=/dev/stderr" \
11  -e "KONG_ADMIN_ERROR_LOG=/dev/stderr" \
12  -e "KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl" \
13  -p 8000:8000 \
14  -p 8443:8443 \
15  -p 127.0.0.1:8001:8001 \
16  -p 127.0.0.1:8444:8444 \
17  kong:latest

安装 konga

1docker pull pantsel/konga:latest
1docker run --rm pantsel/konga:latest \
2        -c prepare \
3        -a postgres \
4        -u postgresql://kong:kong123@172.18.0.1:5432/konga
1docker run -d -p 1337:1337 \
2        --network kong-net \
3        --name konga \
4        -e "NODE_ENV=production"  \
5        -e "DB_ADAPTER=postgres" \
6        -e "DB_URI=postgresql://kong:kong123@172.18.0.1:5432/konga" \
7        pantsel/konga