Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] The docker-compose.override.yml should not be ignored by default #5838

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

dakira
Copy link
Contributor

@dakira dakira commented Mar 9, 2022

While this file can be used for local overrides, that is not its
only intended usage. E.g. a common setup would be like this:

  • docker-compose.yml: services shared across builds
  • docker-compose.override.yml: services only used in development
  • docker-compose.production.yml: configuration needed for building production images.

Now for regular development you just need to run docker-compose up --build and only
in you CI you would build and run for production by explicitly naming the yml files.

TL;DR: Excluding docker-compose.override.yml seems to be a personal preference of
someone and they should do that in their global .gitignore if the are so inclined.

While this file can be used for local overrides, that is not its
only intended usage. E.g. a common setup would be like this:

- *docker-compose.yml*: services shared across builds
- *docker-compose.override.yml*: services only used in development
- *docker-compose.production.yml*: configuration needed for building production images.

Now for regular development you just need to run `docker-compose up --build` and only
in you CI you would build and run for production by explicitly naming the yml files.

TL;DR: Excluding docker-compose.override.yml seems to be a personal preference of
someone and they should do that in their global .gitignore if the are so inclined.
@taylorotwell taylorotwell merged commit 9605fb1 into laravel:9.x Mar 9, 2022
@GrahamCampbell GrahamCampbell changed the title The docker-compose.override.yml should not be ignored by default [9.x] The docker-compose.override.yml should not be ignored by default Jul 6, 2022
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.

2 participants