-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
services with 'depends_on' cannot be extended #3220
Comments
... Not sure if this achieves the same results as web: &web
image: your_image
depends_on:
- db
...
web1:
<<: *web |
What are you trying to do that requires both |
I'm personally only experimenting and considering options at this stage. I'm trying to build a zero-time rolling upgrade based on this pattern. Perhaps multiple compose files can also be used in this case, but I haven't tried it yet. Thanks for suggesting it. |
Why has this been closed? May I cite the official documentation here:
I interpret this as follows: Extending services with depends_on should work, but you have to redefine your dependencies locally. Which would totally make sense to me. Basically all my services use depends_on and networks for orchestration since links are not recommended anymore. This renders the extends mechanism useless for me. |
i think I managed to achieve the same effect by using multiply compose files with the -f option |
@krasi-georgiev You’re right. However, IMHO the current behavior renders the extends mechanism useless in a lot of cases. This could not be the intention, could it? |
I don't know , some of the devs should answer that |
I've been wondering the same thing. I had the same interpretation of the docs as @intellent. The documentation doesn't seem to match behaviour. Regarding @aanand's suggestion of using multiple compose files, that could work, but I think
for a Rails worker process or
for an Admin instance Please let me know if there's anything I'm missing, thanks! |
Why is this closed once more? |
Can this be reopened? |
It is closed because the original reporter considers the issue resolved. It does not need to be re-opened as:
|
At the very least the docs should be clarified, as I too had the same interpretation as @intellent. |
Why can't compose just ignore or skip the
|
I also think the implementation is not what the documentation leads us to believe, totally agree with @Kolyunya and @intellent . |
Folks, find weird behavior in tools: docker-compose up
ERROR: Cannot extend service 'init' in /Users/dmytro.kulyk/projects/betlab/git/datalake/transform/airflow/docker-compose.yml: services with 'depends_on' cannot be extended however docker compose up
[+] Running 4/0
⠿ Container airflow-postgres-1 Created 0.0s
⠿ Container airflow-init-1 Created 0.0s
⠿ Container airflow-webserver-1 Created 0.0s
⠿ Container airflow-scheduler-1 Created |
Yep, seeing this too. |
Same here |
Will this be supported in the future releases ?
The text was updated successfully, but these errors were encountered: