https://github.com/asyrjasalo/kongpose
Kong and Konga (admin webapp) development setup on docker-compose
https://github.com/asyrjasalo/kongpose
docker-compose kong kong-admin-gui konga postgresql
Last synced: 13 days ago
JSON representation
Kong and Konga (admin webapp) development setup on docker-compose
- Host: GitHub
- URL: https://github.com/asyrjasalo/kongpose
- Owner: asyrjasalo
- License: mit
- Created: 2018-07-16T14:52:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-19T12:14:07.000Z (almost 5 years ago)
- Last Synced: 2025-03-29T18:11:21.542Z (about 1 month ago)
- Topics: docker-compose, kong, kong-admin-gui, konga, postgresql
- Language: JavaScript
- Homepage:
- Size: 88.9 KB
- Stars: 67
- Watchers: 2
- Forks: 33
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kongpose
Run [Kong API Gateway, Community Edition](https://konghq.com/kong-community-edition)
development setup with [docker-compose](https://docs.docker.com/compose).
Includes [Konga](https://github.com/pantsel/konga) as admin webapp.Originally based on [Yuan Cheung's docker-compose-kong](https://github.com/zhangyuan/docker-compose-kong), with the following additions:
- Add [declarative configuration examples](https://github.com/asyrjasalo/kongpose/tree/master/examples)
- Includes securing [Kong Admin API](https://docs.konghq.com/0.14.x/secure-admin-api/#kong-api-loopback)
- Use PostgreSQL 9.6 over 9.5, and Alpine Linux based image for smaller size
- Prefer `kong-migration` for initializing the database, rather than `setup.sh`
- Prefer Docker's own health checks, over using `wait-for-it.sh`
- Remove `bash` from built images, as it is not then needed
- Tidy up `docker-compose.yml`, removed `links` as they are not mandatory here
- Remove `start.sh` as `docker-compose restart` is a single command anyway
- Add MongoDB for storing Konga users
- Improve healthchecks for checking if database migrations have ran
- Upgrade Kong to 1.0.0rc3, use Alpine Linux based image for smaller size
- Upgrade Kong Dashboard to latest, to support Kong >= 0.13
- though commented out in `docker-compose.yml` as Konga is enough## Usage
docker-compose up
See [examples of managing APIs with YAML](https://github.com/asyrjasalo/kongpose/tree/master/examples).
## Endpoints
### Kong
- Proxy: [http://localhost:8000](http://localhost:8000)
- Proxy w/ SSL: [https://localhost:8443](https://localhost:8443)
- Admin API: [http://localhost:8001](http://localhost:8001)Kong uses PostgreSQL (9.6) with a persistent Docker volume for its credentials.
### Konga
- GUI: [http://localhost:1337](http://localhost:1337)
The following default users are configured in `konga/user_seed.js`:
- admin / adminadminadmin
- demo / demodemodemoAfter logging in as admin, create a new connection with URL `http://kong:8001`.
Konga uses MongoDB (4.1) with a persistent Docker volume for its credentials.