os-proxy | Manage system-wide proxy settings
kandi X-RAY | os-proxy Summary
kandi X-RAY | os-proxy Summary
Manage system-wide proxy settings
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of os-proxy
os-proxy Key Features
os-proxy Examples and Code Snippets
Community Discussions
Trending Discussions on os-proxy
QUESTION
I'm trying to deploy a stack with docker.
Here is how my stack works:
- nginx-proxy (redirect user requests to the good container)
- website (simple nginx serving a website)
- api (django application, launch with gunicorn)
- nginx-api (serving static files and uploaded files and redirect to the API container if it is an endpoint)
This is my docker-compose.yml:
...ANSWER
Answered 2019-Mar-24 at 20:09this is happening because nginx-api
service is up before the api
service.
but i added the depends_on
option?
you are right, and this option should work for a docker-compose up
case.
but unfortunately not on docker stack deploy
, or, as the docs put it:
The depends_on option is ignored when deploying a stack in swarm mode with a version 3 Compose file.
ok, so what can i do now?
nothing. its actually not a bug-
docker swarm nodes (your stack services) are supposed to recover automatically on error. (thats why you define the restart: always
option). so it should work for you anyway.
if you are using the compose file only for deploying the stack and not on a docker-compose up
- you may remove the depends_on
option completely, it means nothing to docker stack.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install os-proxy
No Installation instructions are available at this moment for os-proxy.Refer to component home page for details.
Support
If you have any questions vist the community on GitHub, Stack Overflow.
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