docker-kong | A working version | Continuous Deployment library
kandi X-RAY | docker-kong Summary
kandi X-RAY | docker-kong Summary
Just click the button and go:. Please use FROM sillelien/docker-kong now instead of FROM neilellis/my-kong.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docker-kong
docker-kong Key Features
docker-kong Examples and Code Snippets
Community Discussions
Trending Discussions on docker-kong
QUESTION
Using compose I want to start a service only after another service has exited with code 0.
I have mutiple needs for this functionality. The basic need is where I have:
- database service
- database migration service
- application service
The database service will start an empty database. My app needs it's schema setup in the database so I have a second service which will do this when it is run. When it is done this service will exit successfully - I can see this in my docker compose log file:
webservices_kong-migration_1 exited with code 0
I do not want the application service to start until after the database migration has completed.
I have the following in my docker-compose file for the application service:
...
ANSWER
Answered 2019-Feb-15 at 10:42Docker compose haven't any out-of-the-box solutions.
But exists a number of good implementations for solving this problem.
One of the better solutions is using service discovery as Consul and Autopilot model implemented in Joyent Containerpilot.
This model allows implementing dependencies between services even in docker swarm cluster where service dependency does not exist at all.
Containerpilot jobs model allow creating simple scripts to keep started services in the right order.
QUESTION
I tried to start kong following the docker guide at https://getkong.org/install/docker/ but getting
...ANSWER
Answered 2018-Mar-02 at 03:46Kong has updated new version on Dockerhub and may be the latest version has error. I used another version and it's work.
Example: Change image kong:latest
to kong:0.12-alpine
.
QUESTION
I used this:
https://github.com/Mashape/docker-kong/tree/master/compose
to run locally Kong on Docker via docker compose. Once I run docker-compose up
I get continuously this error in my log:
ANSWER
Answered 2017-May-29 at 14:31This is happening because consul 'hardcode' its initial assigned local IP (172.17....), then when you run docker-compose again, it takes a new IP, so it confuses our friend consul
.
So, as simple workaround you can docker-compose rm consul
and start again docker-compose up
. But bear in mind that you can be loosing data of consul (i.e. Key/Value store, but I don't know if your application is using it)
As a better workaround (it's working for me), add -client=0.0.0.0
to tell consul to hardcode something better.
In docker-compose.yml:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docker-kong
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page