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

services.graylog.depends_on contains an invalid type, it should be an array #1

Open
litecactus opened this issue May 9, 2023 · 3 comments · May be fixed by #3
Open

services.graylog.depends_on contains an invalid type, it should be an array #1

litecactus opened this issue May 9, 2023 · 3 comments · May be fixed by #3

Comments

@litecactus
Copy link

litecactus commented May 9, 2023

While running docker-compose up I see an error, perhaps a formatting issue?

me@graylog:~/graylog$ docker-compose up
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.graylog.depends_on contains an invalid type, it should be an array
@litecactus
Copy link
Author

litecactus commented May 9, 2023

Changing docker-compose version from "3" to "2.2" seems to do the trick and get it to run, after researching, the depends_on was removed from v3. Need to do more research to discover the correct syntax for v3. Perhaps someone who knows more can chip in here?

@ghost
Copy link

ghost commented May 10, 2023

Seems to work fine on my system. Try using compose V2. I see you're running docker-compose (note the hyphen) and not docker compose like stated in the readme.
See: https://docs.docker.com/compose/migrate/

@litecactus
Copy link
Author

OK so yeah using docker compose and setting version: '3' works. I had docker.io installed so I removed that and installed docker-ce via the docker install instructions on https://docs.docker.com/engine/install/ubuntu/ rather than just using apt install docker.

So if anyone runs into this issue, follow the install instructions for your environment directly from docker and don't use apt.

mrinc added a commit to mrinc/graylog that referenced this issue May 14, 2023
Force min docker compose version to 3.9 for the depends on.
Fixes: lawrencesystems#1
@mrinc mrinc linked a pull request May 14, 2023 that will close this issue
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 a pull request may close this issue.

1 participant