./docker-compose.yml' is invalid because: 'name' does not match any of the regexes: '^x-' #7658

Closed
opened 2026-02-05 13:12:08 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @Tr1pke on GitHub (Oct 30, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

Getting this error with a brand new docker install:

`ERROR: The Compose file './docker-compose.yml' is invalid because:
'name' does not match any of the regexes: '^x-'

You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the services key, or omit the version key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
`

Any ideas? It has worked perfectly before, installing a new server and immich is the only docker that ain't working...

The OS that Immich Server is running on

Ubuntu

Version of Immich Server

v

Version of Immich Mobile App

v

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

No response

Your docker-compose.yml content

the downloaded one

Your .env content

/

Reproduction steps

...

Relevant log output


Additional information

No response

Originally created by @Tr1pke on GitHub (Oct 30, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [ ] Yes ### The bug Getting this error with a brand new docker install: `ERROR: The Compose file './docker-compose.yml' is invalid because: 'name' does not match any of the regexes: '^x-' You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/ ` Any ideas? It has worked perfectly before, installing a new server and immich is the only docker that ain't working... ### The OS that Immich Server is running on Ubuntu ### Version of Immich Server v ### Version of Immich Mobile App v ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Device make and model _No response_ ### Your docker-compose.yml content ```YAML the downloaded one ``` ### Your .env content ```Shell / ``` ### Reproduction steps 1. 2. 3. ... ### Relevant log output ```shell ``` ### Additional information _No response_
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2025):

This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary.

@github-actions[bot] commented on GitHub (Oct 30, 2025): This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#7658