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