I am very new to Kong and have been testing out many different docker-compose files to try and get a combination that I need to run, but have had poor luck so I am oping that someone can help.
What I need is a docker-compose file that will pull up the latest Kong and latest Konga along with utilizing a database (Postgresql and/or Mongodb) to store the Kong and Konga changes.
All of the docker-compose.yml files that I have come across, like:
Pulls up the latest versions, it seems, but does not store the Konga data in a database.
While
uses Postgresql for Kong, and MongoDB for Konga, but is using an old version of Konga (1.0.0 Release Candidate) and the latest Konga does not work well since there seems to be a compatibility issue in needing Kong 1.2 or newer.
I would like to fire up the latest of each in a known working docker-compose and have not worked enough with docker-compose nor Konga & Konga to get it all working correctly.
Later, once I have a working docker-compose.yml then maybe I can investigate how to extend it so that I can also fire up a Letsencrypt container to give SSL protection to the Kong API Gateway as it will be the only thing running on this physical machine which is a Debian 10 (x86_64) system.
I there anyone here that can help me to get a good working docker-compose.yml as I have spent about 4 days trying to get different versions to work by modifying the docker hub pull tags in the from the above github sites, but keep failing?
Any help would be truly appreciated.
Thanks in advance
The docker-compose file references to the ./konga directory, by using the build property. He could also directly target the dockerhub with the image property like he is doing with the konga-database container, but he wanted to add some instructions to seed userdata.
You want to use the ânextâ tag of Konga, because in contrast to what the latest tag suggests, Konga does not have its latest changes committed to the latest tag. Instead he used ânextâ, which you can see on Docker hub: https://hub.docker.com/r/pantsel/konga/tags
I actually previously tried what you are suggesting as an initial attempt to update and run the latest versions together and the results did not work out as far as running in that Kong crashed.
I tried, in each of their respective directories for each Dockerfile tag:
kong:latest
konga:next
but this combination does not work.
Are you able to do this and bring it up well with âdocker-compose upâ?
If so, then did you try to add a service âjson-placeholder.typi.comâ (for example) and then add a route as I found in some combinations that it would fire up, but would not allow me to add the route through Konga.
Ah it worked with just updating Konga, but if I update the Kong container it fails on the migrations. Not sure why.
Maybe you can use my docker-compose file, to which I believe most of the credits go to Kong: I believe I found it somewhere in of their repos. I slightly altered it, but canât remember exactly what. So iâve not written it myself and it may not be really clean because I did not use it for any serious stuff, but it boots up for me with both the latest Kong and Konga. I think you might at least want to add a volume to the konga container, because now everytime you boot it up you need to add a new user and create a new connection again.