webdevops / vagrant-docker-vm

:computer: Development Vagrant VM with Docker, Samba and Mail sandbox (customizable)

Home Page:https://webdevops.io/projects/vagrant-docker-vm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reverse proxy didn't try to request website if the first attempt fails

josefglatz opened this issue · comments

Problem

Consider the following scenario:

  1. You start vagrant-development
  2. Forget to start your docker
  3. Request a http://foo.vm/
  4. Start docker containers
  5. vagrant-development reverse proxy throws 503 even if you force-refresh quite a few times in browser.
  6. After force-refreshing (quite agressive 10-15 times) the reverse proxy tries to request the website from docker container

Is there any treshold time or request treshold which prevents the reverse proxy to request website from the docker container?

Docker containers need some seconds to be up (see docker-compose logs). Reverse proxy should get a running connection to docker containers when they're up.

Please check if docker container were fully running - php-fpm need some times due to runtime provisioning.

ok thx, will check

Thx for your quick answer! That was it