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

Add default environment variables to docker-compose #730

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

fmrsabino
Copy link
Contributor

@fmrsabino fmrsabino commented Dec 8, 2022

Closes #728

  • If no environment variables are not set (more specifically NGINX_HOST_PORT, POSTGRES_PORT and DOCKER_NGINX_VOLUME_ROOT) then docker-compose fails to start the containers
  • Even though the variables are set as an example in .dev.env which is read by env_file, those variables will only be available to the container and not to the docker-compose.yml file

- If no environment variables are not set (more specifically `NGINX_HOST_PORT`, `POSTGRES_PORT` and `DOCKER_NGINX_VOLUME_ROOT`) then docker-compose fails to start the containers
- Even though the variables are set as an example in `.dev.env` which is read by `env_file`, those variables will only be available to the container and not to the docker-compose.yml file
@coveralls
Copy link

Pull Request Test Coverage Report for Build 3647965811

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 99.772%

Totals Coverage Status
Change from base Build 3619218487: 0.0%
Covered Lines: 876
Relevant Lines: 878

💛 - Coveralls

@fmrsabino fmrsabino merged commit 3434998 into main Dec 12, 2022
@fmrsabino fmrsabino deleted the add-default-environment-variables branch December 12, 2022 10:02
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fail to run docker compose up -d db according to README
3 participants