LLocalSearch icon indicating copy to clipboard operation
LLocalSearch copied to clipboard

You may need to add a version declaration to the 'docker-compose.yaml' file

Open kamjin1996 opened this issue 10 months ago • 2 comments

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:

  1. Pull the code
  2. Enter the pulled folder
  3. 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.

kamjin1996 avatar Apr 10 '24 09:04 kamjin1996

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

nilsherzig avatar Apr 10 '24 15:04 nilsherzig

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 avatar Apr 11 '24 21:04 Technetium1

@Technetium1 i think a lot of people are running very old systems. Someone in another issue was running docker-compose from 9 years go

nilsherzig avatar Apr 13 '24 13:04 nilsherzig