You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kong/README.md
+4-167Lines changed: 4 additions & 167 deletions
Original file line number
Diff line number
Diff line change
@@ -57,178 +57,15 @@ WARNING:
57
57
58
58
# What is Kong?
59
59
60
-
Kong is a scalable, open source API Platform (also known as an API Gateway or API Middleware). Kong was originally built by [Kong Inc.](https://konghq.com) (formerly known as Mashape) to secure, manage, and extend over 15,000 Microservices for its API Marketplace, which generates billions of requests per month.
60
+
Kong Gateway is the world’s most adopted API gateway. Lightweight, fast, and flexible, this open source gateway is built for hybrid and multi-cloud and optimized for microservices and distributed architectures.
61
61
62
-
Under active development, Kong is now used in production at hundreds of organizations from startups, to large enterprises and governments including: The New York Times, Expedia, Healthcare.gov, The Guardian, Condè Nast, The University of Auckland, Ferrari, Rakuten, Cisco, SkyScanner, Yahoo! Japan, Giphy and so on.
62
+
Built on this open source DNA, Kong’s unified cloud API platform helps organizations ranging from startups to Fortune 500 enterprises unleash developer productivity, build securely, and accelerate time to market.
63
63
64
64
Kong's official documentation can be found at [docs.konghq.com](https://docs.konghq.com/).
65
65
66
-
# How to use this image without a Database
66
+
# How to use this image
67
67
68
-
Kong 1.1 added the capability to run Kong without a database, using only in-memory storage for entities: we call this DB-less mode. When running Kong DB-less, the configuration of entities is done in a second configuration file, in YAML or JSON, using declarative configuration.
**Note**: Not all Kong plugins are compatible with DB-less mode, since some of them by design require a central database coordination and/or dynamic creation of entities, see the doc for details at [DB-less and Declarative Configuration](https://docs.konghq.com/latest/db-less-and-declarative-config/)
99
-
100
-
# How to use this image with a Database
101
-
102
-
You can either use the official Cassandra/PostgreSQL containers, or use your own.
103
-
104
-
## 1. Link Kong to either a Cassandra or PostgreSQL container
105
-
106
-
It's up to you to decide which datastore between Cassandra or PostgreSQL you want to use, since Kong supports both.
107
-
108
-
### Cassandra
109
-
110
-
Start a Cassandra container by executing:
111
-
112
-
```shell
113
-
$ docker run -d --name kong-database \
114
-
-p 9042:9042 \
115
-
cassandra:3
116
-
```
117
-
118
-
### Postgres
119
-
120
-
Start a PostgreSQL container by executing:
121
-
122
-
```shell
123
-
$ docker run -d --name kong-database \
124
-
-p 5432:5432 \
125
-
-e "POSTGRES_USER=kong" \
126
-
-e "POSTGRES_DB=kong" \
127
-
-e "POSTGRES_PASSWORD=kong" \
128
-
postgres:9.6
129
-
```
130
-
131
-
## 2. Prepare your database
132
-
133
-
Run the database migrations with an ephemeral Kong container:
In the above example, both Cassandra and PostgreSQL are configured, but you should update the `KONG_DATABASE` environment variable with either `cassandra` or `postgres`.
147
-
148
-
**Note for Kong < 0.15**: with Kong versions below 0.15 (up to 0.14), use the `up` sub-command instead of `bootstrap`. Also note that with Kong < 0.15, migrations should never be run concurrently; only one Kong node should be performing migrations at a time. This limitation is lifted for Kong 0.15, 1.0, and above.
149
-
150
-
### Start Kong
151
-
152
-
Once the database has been started and prepared, we can start a Kong container and link it to the database container, and configuring the `KONG_DATABASE` environment variable with either `cassandra` or `postgres` depending on which database you decided to use:
If everything went well, and if you created your container with the default ports, Kong should be listening on your host's `8000` ([Proxy](https://docs.konghq.com/latest/configuration/#proxy_port)), `8443` ([Proxy SSL](https://docs.konghq.com/latest/configuration/#proxy_listen_ssl)), `8001` ([Admin API](https://docs.konghq.com/latest/configuration/#admin_listen)) and `8444` ([Admin API SSL](https://docs.konghq.com/latest/configuration/#admin_listen_ssl)) ports.
174
-
175
-
You can read the docs at [docs.konghq.com](https://docs.konghq.com/) to learn more about Kong.
176
-
177
-
## 3. Use Kong with a custom configuration (and a custom Cassandra/PostgreSQL cluster)
178
-
179
-
You can override any property of the [Kong configuration file](https://docs.konghq.com/latest/configuration/) with environment variables. Just prepend any Kong configuration property with the `KONG_` prefix, for example:
If you change your custom configuration, reload Kong (without downtime) by running:
199
-
200
-
```shell
201
-
$ docker exec -it kong kong reload
202
-
```
203
-
204
-
This will run the [`kong reload`](https://docs.konghq.com/latest/cli/#reload) command in your container.
205
-
206
-
# Running Kong in read-only mode
207
-
208
-
Starting with version `3.2.0` of Kong it is possible to run the container in read-only mode. To do so, mount a Docker volume to the locations where Kong needs to write data. The default configuration requires write access to `/tmp` and to the prefix path, as provided by the following example:
Among the many deployment options [available](https://konghq.com/install), Kong also offers a [Kubernetes Ingress Controller](https://github.com/Kong/kubernetes-ingress-controller) ready to use in your K8s environment.
68
+
Please refer to the [installation section](https://docs.konghq.com/gateway/latest/install/docker/#main) on our documentation website to learn how to use this image.
0 commit comments