1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| docker run -d --restart=unless-stopped \ --name kong \ -p 80:8000 \ -p 443:8443 \ -p 8001:8001 \ -e "KONG_PORT_MAPS=80:8000,443:8443" \ -e "KONG_DATABASE=postgres" \ -e "KONG_PG_HOST=${KONG_PG_HOST}" \ -e "KONG_PG_DATABASE=kong" \ -e "KONG_PG_USER=${KONG_PG_USER}" \ -e "KONG_PG_PASSWORD=${KONG_PG_PASSWORD}" \ -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" \ kong/kong-gateway:3.0.0.0-alpine
|