-
Notifications
You must be signed in to change notification settings - Fork 501
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
Using docker compose instead of docker-compose #1791
Conversation
So, it turns out docker compose now names containers |
Okay, I don't know what to do. docker dash compose is clearly broken, but space compose has a different naming schema. Hmmm.... |
It turns out docker compose has a compatibility flag, but that is not a good long term solution. I don't want to implement this right now since temporary is the most permanent. The issue can be dealt with by running docker compose down after every test. In docker compose guides I've seen inter-container networking being done by just using the container name (without app_id and _1). @lukechilds Why didn't you use this here? |
@@ -147,7 +147,7 @@ fi | |||
echo | |||
echo "Starting Docker services..." | |||
echo | |||
docker-compose "${compose_files[@]}" up --detach --build --remove-orphans || { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build new version
Ok, so Umbrel v1.0 already uses the new compose. I'm just on 0.5 |
We don't rely on that because it can have collisions between apps, e.g if two apps have a Using the full container name guarantees uniqueness and avoids collisions.
Yeah that was a pain, we handled this in 1.0 by manually patching all compose files to force the container name to the old pattern: umbrel/packages/umbreld/source/modules/apps/app.ts Lines 93 to 109 in ace3d9d
|
Got it. Thanks! |
docker-compose
is the V1 syntax, which is now deprecated. The V2 syntax isdocker compose
, since it's now a plugin and not a separate command.This pull request should fix #1785