Skip to content

[REF] Bump docker-compose version to the latest 2.x version#340

Draft
legalsylvain wants to merge 2 commits intoOCA:masterfrom
grap:16.0-BUMP-docker-compose-version
Draft

[REF] Bump docker-compose version to the latest 2.x version#340
legalsylvain wants to merge 2 commits intoOCA:masterfrom
grap:16.0-BUMP-docker-compose-version

Conversation

@legalsylvain
Copy link
Copy Markdown
Collaborator

No description provided.

@sbidoul
Copy link
Copy Markdown
Member

sbidoul commented Apr 1, 2026

Can we remove the version field? https://docs.docker.com/reference/compose-file/version-and-name/

@legalsylvain
Copy link
Copy Markdown
Collaborator Author

I dont know. I'm very bad in docker stuff. I had a problem with 2.0 ans 2.4 solved the issue.
But without understanding...

@legalsylvain legalsylvain force-pushed the 16.0-BUMP-docker-compose-version branch from 0a49e89 to 4c5ced6 Compare April 7, 2026 20:33
'ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services: 'bot'
' error
@legalsylvain
Copy link
Copy Markdown
Collaborator Author

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:
Unsupported config option for services: 'bot'

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

@manuel-florido
Copy link
Copy Markdown

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?

@legalsylvain @ValentinVinagre

@legalsylvain
Copy link
Copy Markdown
Collaborator Author

Could you please confirm whether the command used to start the bot is using Docker Compose v1 or v2?

I try with docker compose command, but it looks uninstalled and installation on my server failed. As said before, I'm not very skilled in docker, so I'll let more docker experienced user make a better PR.

putting in draft in the meantime.

@legalsylvain legalsylvain marked this pull request as draft April 8, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants