-
Notifications
You must be signed in to change notification settings - Fork 307
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
How to exploit docker-compose default files #183
Comments
But all this is already there So rename your |
|
docker-compose opens several files by default as described here. These are the default
docker-compose.yml
file and a default override file nameddocker-compose.override.yml
which acts as an override similar to the docker-override.yml file used in the repo.docker-compose also opens, by default, an environment file named
.env
. Refer to this documentation.These files are very useful for just-in-time override setting and the .env file allows you to define stack wide environment values.
However using these files in the default ~/IOTstack directory will cause git to identify the files for tracking. The solution is to tell git to ignore them. The technique I use is to create a file named
.gitignore-iotstack
in the directory and then tell git to use that as a configuration file for exclusion. This setup will not impact the default git settings for this repo.Here's what to do:
.gitignore-iotstack
with this content:git config core.excludesfile .gitignore-iotstack
That should do it. NOTE this does not take care of these files being backed up as defined in PR #183 but can be done now and dropped if the PR is merged.
The text was updated successfully, but these errors were encountered: