LLocalSearch
LLocalSearch copied to clipboard
You may need to add a version declaration to the 'docker-compose.yaml' file
Describe the bug I follow the steps to pull the code, and after I run docker-compose up directly, I get the following message: ERROR: Invalid interpolation format for "backend" option in service "services": "OLLAMA_HOST=${OLLAMA_HOST:-http://host.docker.internal:11434}"
To Reproduce Steps to reproduce the behavior:
- Pull the code
- Enter the pulled folder
- Run docker-compose up
Expected behavior The docker-compose syntax error due to no declared version will no longer be prompted.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
Just add the following at the top of docker-compose.yaml:
version: "3.7"
He should be working normally at this point.
Oh thanks for pointing that out. I'm currently building an end to end test pipeline for the whole projekt.
My tests VMs are NixOS unstable and Ubuntu 22.04 and I didn't catch this error. Which OS and docker-compose version are you on?
Btw I think docker-compose is getting deprecated for "docker compose" which doesn't need the version Tag
Compose version 1 has been deprecated since June 2023, so there is no longer a need to specify version. If version
is specified, it results in a warning.
The latest schema will always prefer the latest version: https://github.com/compose-spec/compose-spec/blob/master/spec.md#version-and-name-top-level-elements
@Technetium1 i think a lot of people are running very old systems. Someone in another issue was running docker-compose from 9 years go