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

推荐订阅源

V2EX - 技术
V2EX - 技术
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Latest news
Latest news
T
The Exploit Database - CXSecurity.com
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
L
Lohrmann on Cybersecurity
aimingoo的专栏
aimingoo的专栏
B
Blog
T
Threat Research - Cisco Blogs
罗磊的独立博客
Application and Cybersecurity Blog
Application and Cybersecurity Blog
P
Proofpoint News Feed
P
Palo Alto Networks Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
博客园 - 司徒正美
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
T
Tor Project blog
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
Recorded Future
Recorded Future
D
DataBreaches.Net
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
B
Blog RSS Feed
Scott Helme
Scott Helme
P
Proofpoint News Feed
V
Vulnerabilities – Threatpost
A
Arctic Wolf
Help Net Security
Help Net Security
L
LINUX DO - 最新话题
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Vercel News
Vercel News
AWS News Blog
AWS News Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Schneier on Security
Hacker News: Ask HN
Hacker News: Ask HN
N
Netflix TechBlog - Medium
L
LangChain Blog
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
M
MIT News - Artificial intelligence
N
News and Events Feed by Topic
Webroot Blog
Webroot Blog
W
WeLiveSecurity

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