How to integrate Kong with consul in docker to establish microservice structure


I want to make the Kong as a gateway, and consul as the registery center to manage many microservice; I also need run this in both docker-compose and kubernetes environment.

I googled for the solution, unforturnately, I can’t find a suitable one, could you offer me some help or samples to fix my puzzle.