Wrong Compose Version??
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/
services.database.healthcheck value 'start_interval' does not match any of the regexes: '^x-'
The yml is the one from the tutorial. and the env file is the example oneDocker Documentation
Compose file reference
Find the latest recommended version of the Docker Compose file format for defining multi-container applications.
38 Replies
:wave: Hey @pizzadestroyer34,
Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker ps -a
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
- Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA
Checklist
I have...
1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
2. :ballot_box_with_check: read applicable release notes.
3. :ballot_box_with_check: reviewed the FAQs for known issues.
4. :ballot_box_with_check: reviewed Github for known issues.
5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
6. :ballot_box_with_check: uploaded the relevant information (see below).
7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
Information
In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:
- Your docker-compose.yml and .env files.
- Logs from all the containers and their status (see above).
- All the troubleshooting steps you've tried so far.
- Any recent changes you've made to Immich or your system.
- Details about your system (both software/OS and hardware).
- Details about your storage (filesystems, type of disks, output of commands like fdisk -l
and df -h
).
- The version of the Immich server, mobile app, and other relevant pieces.
- Any other information that you think might be relevant.
Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.Your version of docker is very old
You can run
docker -v
to check
Current is Docker version 28.1.1Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
28.0.4
How are you running immich? Please post the exact commands you ran
You probably used docker-compose
sudo docker-compose up -d
Yeah, that’s not a thing anymore. You have an old phantom docker hanging around
It’s
docker compose
So sudo docker compose up -d
should workthe yml file's name is docker-dash-compose
Ok, that doesn't matter though
whe the vommand is docker compose
Because the file can be called anything you want, but it defaults to
docker-compose.yml
the command remains docker compose
no matter what your file is calledgood to know. thanks
i will try to upgrade docker
You shouldn't need to
try running
sudo docker compose up -d
first/immich-app# sudo docker compose up -d unknown shorthand flag: 'd' in -d
Usage: docker [OPTIONS] COMMAND [ARG...]
Run 'docker --help' for more information
BTW, thank you for the super fast replies. I didn't think anyone would reply until tomorrow 🙂 . very appreciated
Alright, so unfortunately missing compose after all, follow https://docs.docker.com/compose/install/ to install the latest
Don't install docker desktop @pizzadestroyer34 sorry I should have been clear
follow scenario two there
https://docs.docker.com/compose/install/linux/#install-using-the-repository
👍
Very interesting. I guess the daemon from the old install just kept getting updated
It actually says on the link I posted 😛
After Docker Compose V1 was removed in Docker Desktop version 4.23.0 as it had reached end-of-life, the docker-compose command now points directly to the Docker Compose V2 binary, running in standalone mode.
That’s for docker desktop tho?
ah is it
Ah whatever it's junk in both cases 😛
I am confused. So, docker used to have compose integrated, but now it's separate?
Something like that
the important part is you have the old version and need the new one
Updated with
sudo apt-get update
sudo apt-get install docker-compose-plugin
And run docker compose up -d
It's doing different stuff now.
"pulling" it says
(did you know apt-get was superseded by
apt
😛 )I didn't get the memo
lol
It's been 10 years I think 😛
So, I run OMV, and I have apt get update, upgrade and dist-upgrade runnig each month. Shouldn't that have been enough to update compose as well?
Ah, I guess, if they removed it from the main docker, it needs to be installed separately
It's like installing python3 vs python2
just updating python2 won't get you python3
Thank you gain gents and gals! I could not find a direct solution online to this, specifically for immich.
@Zeus

stuck at 614.4mb
Uh, that would be a your PC or network issue
Maybe you’re out of space or Internet is down
I'm voting out of space
It's OMV
a quick
sudo df -hT
will show whether I'm rightyah idk

sys looks okay
Hmmm plenty of space in var
Do you ever prune old docker images?
I have it automated, but yes I do. I run it a second time and the same issue. Can't be a network issue cuz I ssh in it and it loads.
Sometimes images just download wrong
You'd think the checksum would prevent this..