Skip to content
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

Fix docker-compose.yml #1912

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

siraht
Copy link

@siraht siraht commented Dec 18, 2021

The docker-compose.yml file has been incorrectly formatted for the version of compose used, for months now. I've fixed it by adding dashes in front of depends_on services as well as removing the deprecated condition fields within the depends_on fields.

@vercel
Copy link

vercel bot commented Dec 18, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/athens-research/athens/HkADHNbYvarmi3MEPTwQH73V4ir4
✅ Preview: Failed

@CLAassistant
Copy link

CLAassistant commented Dec 18, 2021

CLA assistant check
All committers have signed the CLA.

@siraht siraht changed the title Fix docker compose Fix docker-compose.yml Dec 18, 2021
@filipesilva
Copy link
Collaborator

Heya @siraht thanks for taking this on. I think something went wrong though, because the whole file shows up as new in the diff and it also shows up as a branch conflict in the merge widget.

I'm a bit confused about the file being incorrectly formatted though... I'd expect docker compose to complain about it, but I haven't seen any error messages or weird behaviour around depends_on or condition, neither locally nor on the servers we deploy to. I can see the containers waiting for each other to be in healthy states when starting too.

What version of docker and docker compose are you on? The server we run this file on is using Docker 20.10.8, and Docker Compose 1.27.4.

@filipesilva
Copy link
Collaborator

I can see issues that sound like what you describe in docker/compose#4538 and docker/compose#4305. I don't get any error locally or on the server though... I wonder if it's related to the platform. I'm on mac and the server is linux.

@filipesilva
Copy link
Collaborator

I also see mentions of it working again as of docker compose 1.27: https://news.ycombinator.com/item?id=25329651

I'm very confused about this tbh... Kind expected to find some authoritative information somewhere in the official docker channels.

@siraht
Copy link
Author

siraht commented Dec 30, 2021

@filipesilva sorry about the pull request issues, this was actually my first pull request ever! (And I think I know what I did wrong :P)

Anyways, with an updated Docker installation on Ubuntu (tried on multiple installations) I could not get the docker-compose working except for the configuration here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants