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

determine best approach for env variables in docker #4

Open
elrayle opened this issue Aug 4, 2020 · 1 comment
Open

determine best approach for env variables in docker #4

elrayle opened this issue Aug 4, 2020 · 1 comment
Assignees

Comments

@elrayle
Copy link
Member

elrayle commented Aug 4, 2020

Description

Determine how best to provide username, password, service and database connection info to docker in a way that prevents the info going into GitHub.

Background

We currently store users, password, service and database info in .env files. Examples for docker put this info directly in the docker-compose.yml file. This file has valuable setup information that we want to store in GitHub, but we don't want to store the private env file info.

Approaches to explore

  • docker secret
  • environment variables
  • use of .env files with docker
  • Yale has a section in the web definition in the docker-compose.yml that includes a reference to .env and .secret

The approach should be compatible with deployment on localhost, dev-vm server, and AWS server.

@elrayle elrayle changed the title determine best approach for env variable in docker determine best approach for env variables in docker Aug 4, 2020
@elrayle
Copy link
Member Author

elrayle commented Sep 24, 2020

For local development on a Mac laptop, the environment variables' attr-value pairs are stored in a .env file at the root of the cloned qa_server_container application. The README has instructions for Getting Started. Expected environment variables are defined in .env.example.

We are working to determine the best way to set these for deploy in AWS.

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