-
Confirm you have Docker and Docker compose installed
- If you are on Mac you can install both with Get Docker Desktop for Mac
-
Create a environment var for you Kong License, KONG_LICENSE_DATA
-
Create a file with your json license
-
Create your environment variable KONG_LICENSE_DATA from the above file
export KONG_LICENSE_DATA=`cat /path/to/license.json`;
-
From the parent directory of your docker-compose.yaml file
- Start Kong with docker-compose
docker-compose up -d
- Stop Kong with docker-compose, and 'maintain' state
docker-compose stop
- Stop and Remove Kong and related containers with docker-compose
docker-compose down
Updated for 2.4 - https://gist.github.com/hhoover/c1a8de617080724d914623df90ee120b