Skip to content

Commit

Permalink
Leverage Docker Compose's .env file for environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
luigidifraia committed Sep 27, 2018
1 parent c18269f commit dbf3a03
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
data
output
output
.env
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Environment variables you define here are used for variable substitution in your Docker Compose file

# The following keys are invalid and provided as an example only.
# Please see the Managing Access Keys for IAM Users documentation (https://docs.aws.amazon.com).
ODC_ACCESS_KEY=AKIAIOSFODNN7INVALID
ODC_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYINVALIDKEY
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ notebooks/.jupyter/
notebooks/.local/
notebooks/.bash_history
notebooks/.python_history
.env
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ You need to be logged in to the AWS Console deploy using this URL. Once logged i

# IMPORTANT NOTES
In your local environment, in order to be able to get data from S3, you need to ensure that the environment variables `ODC_ACCESS_KEY` and `ODC_SECRET_KEY` are set to something valid.

##
Environment variables can be set in a .env file for Docker Compose. You might use [.env.example](./.env.example) as a starting point.

0 comments on commit dbf3a03

Please sign in to comment.