The 坑 of install Kong and Konga in Docker

Install Kong with PostgreSQL in docker

Create docker network

$ docker network create kong-net

Start database (psql should be 9.6!!)

$ docker run -d --name kong-database \

--network=kong-net \

-p 5432:5432 \

-e "POSTGRES_USER=kong" \

-e "POSTGRES_DB=kong" \

postgres:9.6

......

Certbot for wildcard domain

$ certbot certonly --manual -d *.foo.bar -d foo.bar --server https://acme-v02.api.letsencrypt.org/directory --preferred-challenges dns

Then following the instruction add add TXT record on your domain DNS

psycopg2 macOS 安装问题

备忘

报个这个错 ld: library not found for -lssl

clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: command 'gcc' failed with exit status 1

libssl.dylib 和 libcrypto.dylib 的版本问题

奇技淫巧

用brew安装的openssl的两个库来替代系统库

brew install openssl

env LDFLAGS="-I/......