Sign inSign up

wfp2002/kong

By wfp2002

•Updated over 8 years ago

KONG API Gateway

Image
0

886

wfp2002/kong repository overview

KONG API Gateway

Please pull the 2 repositories:

docker pull wfp2002/kong docker pull wfp2002/kong-database

After pull the repositories above, typing with root in your local docker:

docker run -d --name kong-database
-p 5432:5432
-e "POSTGRES_DB=kong"
-e "POSTGRES_USER=kong"
-e "POSTGRES_PASSWORD=kong"
postgres:latest

docker run --rm
--link kong-database:kong-database
-e "KONG_DATABASE=postgres"
-e "KONG_PG_HOST=kong-database"
-e "KONG_PG_PASSWORD=kong"
kong:latest kong migrations up

docker run -d --name kong
--link kong-database:kong-database
-e "KONG_DATABASE=postgres"
-e "KONG_PG_HOST=kong-database"
-e "KONG_PG_PASSWORD=kong"
-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"
-e "KONG_ADMIN_LISTEN_SSL=0.0.0.0:8444"
-p 8000:8000
-p 8443:8443
-p 8001:8001
-p 8444:8444
kong:latest

To check access: http://localhost:8000⁠ http://localhost:8001⁠

Tag summary

Content type

Image

Digest

Size

31.1 MB

Last updated

over 8 years ago

docker pull wfp2002/kong