Skip to content

feat: support compose.override.yaml files in docker-compose script#1397

Open
BR-RedEnzian wants to merge 1 commit intomarkshust:release/nextfrom
BR-RedEnzian:feature/compose-override-detection
Open

feat: support compose.override.yaml files in docker-compose script#1397
BR-RedEnzian wants to merge 1 commit intomarkshust:release/nextfrom
BR-RedEnzian:feature/compose-override-detection

Conversation

@BR-RedEnzian
Copy link

why this feature is useful

if you need to change e.g. ports of one or more services, using a compose.override.yaml file is update save.
in my case, i run my own mariadb server on my machine, so port 3306 is assigned to this server and i cant access the containered version of mariadb with DataGrip.

current behaviour

docker-compose does currently ignore compose.override.yaml files

after the changes

this change will add an override file (if it exists) to the docker compose command.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 15, 2026
@what-the-diff
Copy link

what-the-diff bot commented Jan 15, 2026

PR Summary

  • Inclusion of compose.override.yaml File
    The code was updated to automatically use the compose.override.yaml file, should one exist. This allows for increased flexibility and customization, improving ease of use for users who may need to modify certain configurations.

@dosubot dosubot bot added the feature label Jan 15, 2026
@markshust
Copy link
Owner

Hi @BR-RedEnzian,

Looks like a nice update, however that is kinda what the compose.dev.yaml file is for. That file overrides the base compose.yaml file, so you should be able to put anything in that file meant to override the base. Did you try that out?

Cheers,
Mark

@BR-RedEnzian
Copy link
Author

Hi @BR-RedEnzian,

Looks like a nice update, however that is kinda what the compose.dev.yaml file is for. That file overrides the base compose.yaml file, so you should be able to put anything in that file meant to override the base. Did you try that out?

Cheers, Mark

Hi,

yes i know the .dev file but my problem is/was, that this file is overwritten whenever used the bin/update script.

with the override file, developers have a way to keep their changes for docker compose files even when updating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature pending more info size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants