Repository navigation
Replies: 2 comments 1 reply
|
this is docker-compose version issue. you are using old docker-compose (1.29) which doesnt support new yaml syntax. the new compose v2 supports object format for env_file but v1 doesnt. fix options:
sudo apt remove docker-compose
sudo apt install docker-compose-pluginthen use
the your fixes are valid workarounds for compose v1. but upgrading to v2 is better since most new projects use v2 syntax now |
1 reply
|
Working as designed. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I followed the instructions in the README and found that I had to modify docker-compose.yml before docker compose would work. I am running it on an Ubuntu 24.04 LTS server. I'm posting this here in case it helps someone, if these are actual bugs in the code then I would be happy to put together a pull request.
My docker version:
Docker version 28.2.2, build 28.2.2-0ubuntu1~24.04.1
Docker compose version:
docker-compose version 1.29.2, build unknown
First I got this error:
Invalid interpolation format for "command" option in service "n8n-import"I fixed it by escaping the '$' in line 76 resulting in this code:
"$$(n8n list:workflow --onlyId)"
Next I got this error:
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.n8n.env_file contains {"path": ".env", "required": true}, which is an invalid type, it should be a string
services.n8n-import.env_file contains {"path": ".env", "required": true}, which is an invalid type, it should be a string
I fixed it by changing the value of the key x-n8n.env_file to this (changing it into a string):
env_file: .env
All reactions