Install Kong OSS DB-less mode in Ubuntu Mate Impish 21.10 in Raspberry PI 4
- Pull docker images.
sudo docker pull arm64v8/kong
- Run Kong in DB-less mode.
sudo docker run -d --name kong \
-e "KONG_DATABASE=off" \
-e "KONG_PROXY_ACCESS_LOG=/dev/stdout" \
-e "KONG_ADMIN_ACCESS_LOG=/dev/stdout" \
-e "KONG_PROXY_ERROR_LOG=/dev/stderr" \
-e "KONG_ADMIN_ERROR_LOG=/dev/stderr" \
-e "KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl" \
-p 8000:8000 \
-p 8443:8443 \
-p 8001:8001 \
-p 8444:8444 \
arm64v8/kong
Ports:
8000 = HTTP Proxy
8001 = HTTP Admin API
8443 = HTTPS Proxy
8444 = HTTPS Admin API
IMPORTANT!
When running Kong in DB-less mode you should provide a unique ID to each object that you create (route, service, etc.). If this is not done you will have error messages and your application may not work as expected.
References: