Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
avip
on April 7, 2020
|
parent
|
context
|
favorite
| on:
The Docker Compose Specification
It's like asking when to use python2. Use v2 if you have no choice. If you're asking, apparently you have the choice, so there's your answer.
stevebmark
on April 7, 2020
[–]
Nope, entirely wrong! v3 isn't an upgrade, it has features specific to orchestration. v3 is a fork, not an upgrade. v2 is better for local development, it has things like depends_on which v3 doesn't have.
avip
on April 7, 2020
|
parent
[–]
depends_on
was removed because it was an inconsistent and problematic directive. You can abuse links instead.
stevebmark
on April 13, 2020
|
root
|
parent
[–]
You should only use v3 if you need v3 features and know how to use them. You should use v2 for local development if you're not using stack/swarm locally:
https://github.com/docker/compose/issues/4305#issuecomment-3...
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: