Define frontend container to depend on the backend (#8467)

This is, because the default start up starts the CSS watch process. This
process is waiting for the backend starting.

I have been running into issues where the frontend container seems to
hammer the backend container to test if the app was up yet. This lead to
the backend container (which in turn hit the database container)
becoming unresonsive under the load.

I am not sure defining the dependency in the container start order will
solve this issue, but it can't hurt.

I think the container start order might be involved, because the issue
is not constant. There seems to be a race condition involved or some
part that makes it random. Maybe that is the container start order. This
change will make sure the containers are starting in a consistent order.
This commit is contained in:
Tibor Leupold 2022-03-24 13:01:18 -07:00 коммит произвёл GitHub
Родитель 011c4bc1ee
Коммит 57bbc0d7ea
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -18,6 +18,8 @@ services:
volumes:
- .:/app:delegated
- node_modules:/app/node_modules/:delegated
depends_on:
- backend
postgres:
image: postgres:13.2