Created
March 8, 2018 06:59
-
-
Save jimmy18dev/7b60bc558d52d0a5dda1a382a1ad5e8f to your computer and use it in GitHub Desktop.
Kong API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d --name kong-database --network=dockerphp7_default -p 5432:5432 -e "POSTGRES_USER=kong" -e "POSTGRES_DB=kong" postgres:9.4 | |
docker run --rm --link kong-database:kong-database --network=dockerphp7_default -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=kong-database" -e "KONG_CASSANDRA_CONTACT_POINTS=kong-database" kong:latest kong migrations up | |
docker run -d --name kong --link kong-database:kong-database --network=dockerphp7_default -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=kong-database" -e "KONG_CASSANDRA_CONTACT_POINTS=kong-database" -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 | |
curl -i -X GET --url http://localhost:8000/ --header 'Host: localhost' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment