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

Support for compose environment variables and interpolation #532

Closed
diegocastrum opened this issue Apr 11, 2022 · 0 comments
Closed

Support for compose environment variables and interpolation #532

diegocastrum opened this issue Apr 11, 2022 · 0 comments
Milestone

Comments

@diegocastrum
Copy link
Contributor

Summary:

To avoid port collision when working on django-celery-beat in some devel environments it would be nice if the docker-compose makes use of env variables defined in a .env file, for more information about how docker-compose loads these variables take a look of the docker-compose documentation.

Detailed information

The idea is just to make use of string interpolation from docker-compose.yml taking the current values that everybody uses as defaults, When the project runs, if a .env file is found with the right env var defined, docker-compose will use it instead the default one. This approach shouldn't any current development setup

diegocastrum added a commit to diegocastrum/django-celery-beat that referenced this issue Apr 11, 2022
Added `.env` to `.gitignore`.

Added a `.env.sample` that will be used by anyone he need it. Just copy
it as `.env` in your local devel env and use the (supported) variables
you need.

`docker-compose.yml` updated in order to support string interpolation
when using variables defined in a `.env` file.

Fixed a typo in `issue_template.md`.
@auvipy auvipy added this to the v2.3.0 milestone Apr 11, 2022
auvipy added a commit that referenced this issue Apr 11, 2022
* Added support for compose env vars (#532)

Added `.env` to `.gitignore`.

Added a `.env.sample` that will be used by anyone he need it. Just copy
it as `.env` in your local devel env and use the (supported) variables
you need.

`docker-compose.yml` updated in order to support string interpolation
when using variables defined in a `.env` file.

Fixed a typo in `issue_template.md`.

* newline

* newline

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
@auvipy auvipy closed this as completed Apr 11, 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

No branches or pull requests

2 participants