- Create database with postgres12
$ docker-compose up -d kong-database
- Run boostrapped migrations for kong in kong database
$ docker-compose up -d kong-migration
- Setup Kong which connects to kong-database
$ docker-compose up -d kong
- Installs Kong 2.8.1 (open source)
- Installs luarocks5.1
- Installs [kong-oidc]1.2.4-4
See Dockerfile for more details
- Konga Database
$ docker-compose up -d konga-database
-
Konga Database installed on postgres9.6 since kong doesn't support postgres12+ as of 27th July, 2022. This is a work around for now.
See Related Issues:
PR for fix (yet to be merged): pantsel/konga#740
- Konga
$ docker-compose up -d konga
- Konga uses latest version of Konga and uses konga-database (not to be confused with kong-database)
Note: If above PR is merged, update docker-compose for konga to use kong-datase with postgres12
konga-prepare:
image: pantsel/konga:next
environment:
DB_IS_PG12_OR_NEWER: true
command: "-c prepare -a postgres -u postgresql://kong:kongpass@kong-database:5432/konga_db"
networks:
- kong-net
links:
- kong-database
depends_on:
- kong-database
konga:
image: pantsel/konga:next
restart: always
networks:
- kong-net
environment:
DB_ADAPTER: postgres
DB_HOST: kong-database
DB_USER: kong
DB_PASSWORD: kongpass
DB_DATABASE: konga_db
DB_IS_PG12_OR_NEWER: true
TOKEN_SECRET: km1GUr4RkcQD7DewhJPNXrCuZwcKmqjb
NODE_ENV: production
depends_on:
- kong-database
ports:
- "1337:1337"