[GH-ISSUE #392] Getting an Error on the Compose File #1429

Closed
opened 2026-04-16 08:04:18 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @TeamGroth on GitHub (Mar 23, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/392

I am trying to set this up tonight on an LXC container on Debian 12.7.1. When I first ran the script, I was ssh'd into vscode and running the commands through the terminal. I thought that it was odd, that after it answered no for installing crowedsec it said that the installation was complete. I ran docker-compose up -d on the console of the debian server and got the same error. It is saying that the compose file './docker-compose.yml' is invalid because 'name' does not match any of the regexes: '^x-'. I looked at the file and it looks ok to me. Maybe I am doing something wrong.

https://imgur.com/a/oWprJoM

Originally created by @TeamGroth on GitHub (Mar 23, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/392 I am trying to set this up tonight on an LXC container on Debian 12.7.1. When I first ran the script, I was ssh'd into vscode and running the commands through the terminal. I thought that it was odd, that after it answered no for installing crowedsec it said that the installation was complete. I ran docker-compose up -d on the console of the debian server and got the same error. It is saying that the compose file './docker-compose.yml' is invalid because 'name' does not match any of the regexes: '^x-'. I looked at the file and it looks ok to me. Maybe I am doing something wrong. https://imgur.com/a/oWprJoM
Author
Owner

@miloschwartz commented on GitHub (Mar 23, 2025):

Since you're using the older docker-compose and not docker compose I think you have to set the version at the top of the file. I think you could add version: 3.9 to the top of the file, but the best solution would be to use the newer docker compose tools.

<!-- gh-comment-id:2746538513 --> @miloschwartz commented on GitHub (Mar 23, 2025): Since you're using the older docker-compose and not docker compose I think you have to set the version at the top of the file. I think you could add `version: 3.9` to the top of the file, but the best solution would be to use the newer docker compose tools.
Author
Owner

@TeamGroth commented on GitHub (Mar 24, 2025):

I installed docker compose with apt after creating the Debian server. I
would have thought I had the latest version.

On Sun, Mar 23, 2025, 6:10 PM Milo Schwartz @.***>
wrote:

Since you're using the older docker-compose and not docker compose I think
you have to set the version at the top of the file. I think you could add version:
3.9 to the top of the file, but the best solution would be to use the
newer docker compose tools.


Reply to this email directly, view it on GitHub
https://github.com/fosrl/pangolin/issues/392#issuecomment-2746538513,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3GUER63X3TQXXG46QVZNOD2V45OBAVCNFSM6AAAAABZTQ5KEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBWGUZTQNJRGM
.
You are receiving this because you authored the thread.Message ID:
@.***>
[image: miloschwartz]miloschwartz left a comment (fosrl/pangolin#392)
https://github.com/fosrl/pangolin/issues/392#issuecomment-2746538513

Since you're using the older docker-compose and not docker compose I think
you have to set the version at the top of the file. I think you could add version:
3.9 to the top of the file, but the best solution would be to use the
newer docker compose tools.


Reply to this email directly, view it on GitHub
https://github.com/fosrl/pangolin/issues/392#issuecomment-2746538513,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3GUER63X3TQXXG46QVZNOD2V45OBAVCNFSM6AAAAABZTQ5KEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBWGUZTQNJRGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2746844025 --> @TeamGroth commented on GitHub (Mar 24, 2025): I installed docker compose with apt after creating the Debian server. I would have thought I had the latest version. On Sun, Mar 23, 2025, 6:10 PM Milo Schwartz ***@***.***> wrote: > Since you're using the older docker-compose and not docker compose I think > you have to set the version at the top of the file. I think you could add version: > 3.9 to the top of the file, but the best solution would be to use the > newer docker compose tools. > > — > Reply to this email directly, view it on GitHub > <https://github.com/fosrl/pangolin/issues/392#issuecomment-2746538513>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/A3GUER63X3TQXXG46QVZNOD2V45OBAVCNFSM6AAAAABZTQ5KEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBWGUZTQNJRGM> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> > [image: miloschwartz]*miloschwartz* left a comment (fosrl/pangolin#392) > <https://github.com/fosrl/pangolin/issues/392#issuecomment-2746538513> > > Since you're using the older docker-compose and not docker compose I think > you have to set the version at the top of the file. I think you could add version: > 3.9 to the top of the file, but the best solution would be to use the > newer docker compose tools. > > — > Reply to this email directly, view it on GitHub > <https://github.com/fosrl/pangolin/issues/392#issuecomment-2746538513>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/A3GUER63X3TQXXG46QVZNOD2V45OBAVCNFSM6AAAAABZTQ5KEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBWGUZTQNJRGM> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@Lokowitz commented on GitHub (Mar 24, 2025):

Hi @TeamGroth,

for docker installation it would be better to follow the official installation guid to get the latest version.

<!-- gh-comment-id:2747089109 --> @Lokowitz commented on GitHub (Mar 24, 2025): Hi @TeamGroth, for docker installation it would be better to follow the [official installation guid](https://docs.docker.com/engine/install/debian/#install-using-the-repository) to get the latest version.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#1429