-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
depends_on is deprecated in docker-compose v3 #273
Comments
i just got this issue a few minitus ago, how to fix it ?
|
You have to delete all |
using dc 3.7 and is working fine here. was not able to reproduce with 3.3 either. |
ok, what are your versions, mine are:
|
thanks,it works fine for me:) |
Same problem here. Running on a mac, versions for reference: Docker:
Docker Compose:
Removing |
Getting error when deploy 'services.backend.depends_on must be a list' tiangolo/full-stack-fastapi-template#273
Long syntax does not not seems deprecated according to latest docker compose specification but clearly not implemented with |
following as |
The depends_on option is ignored when deploying a stack in swarm mode with a version 3 Compose file. Reference: https://docs.docker.com/compose/compose-file/compose-file-v3/#depends_on |
depends_on
does not longer wait for the container to be "ready" instead it will wait for it to be started. To make sure a container is ready one should have a try again loop.I experienced issues when deploying this, with the deploy script:
I don't know why nobody else had this problem, but for me everything works fine when removing the
depends_on
lines. This seems to be the expected behavior as stated in the docs:Did someone else had this problem? Is it save to remove the
depends_on
lines?The text was updated successfully, but these errors were encountered: