[REF] Bump docker-compose version to the latest 2.x version#340
[REF] Bump docker-compose version to the latest 2.x version#340legalsylvain wants to merge 2 commits intoOCA:masterfrom
Conversation
|
Can we remove the version field? https://docs.docker.com/reference/compose-file/version-and-name/ |
|
I dont know. I'm very bad in docker stuff. I had a problem with 2.0 ans 2.4 solved the issue. |
0a49e89 to
4c5ced6
Compare
'ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services: 'bot' ' error
|
hi. I made a new deploymnent, removing totally the version. see : 4c5ced6 It failed with the following error : 'ERROR: The Compose file './docker-compose.yml' is invalid because: I restored the 2.4 version and it works well in grap production I'll not investigate more and I can close this PR, if you think it's not relevant. regards |
|
I think the issue is that it removes the version key from docker-compose.yml, while still using Docker Compose v1 (docker-compose) instead of v2 (docker compose). Removing version makes sense in a Compose v2 context, but if the bot is still being started with Docker Compose v1, removing it will not work. Could you please confirm whether the command used to start the bot is using Docker Compose v1 or v2? |
I try with putting in draft in the meantime. |
No description provided.