Skip to content

Commit

Permalink
Pass env vars through to test app
Browse files Browse the repository at this point in the history
Using env vars for options we want to test means we can stop and restart the app to test different options without needing to rebuild the image.
  • Loading branch information
iaincollins committed Sep 3, 2020
1 parent 88b87a5 commit 3046691
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/docker/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,25 @@ services:
build:
context: ../../
dockerfile: Dockerfile
environment:
# Set env vars in your current terminal or in .env in the root directory
- NEXTAUTH_URL=${NEXTAUTH_URL}
- DATABASE_URL=${DATABASE_URL}
- SECRET=${SECRET}
- JWT_SESSIONS=${JWT_SESSIONS}
- AUTH0_ID=${AUTH0_ID}
- AUTH0_SECRET=${AUTH0_SECRET}
- AUTH0_DOMAIN=${AUTH0_DOMAIN}
- FACEBOOK_ID=${FACEBOOK_ID}
- FACEBOOK_SECRET=${FACEBOOK_SECRET}
- GITHUB_ID=${GITHUB_ID}
- GITHUB_SECRET=${GITHUB_SECRET}
- GOOGLE_ID=${GOOGLE_ID}
- GOOGLE_SECRET=${GOOGLE_SECRET}
- TWITTER_ID=${TWITTER_ID}
- TWITTER_SECRET=${TWITTER_SECRET}
- EMAIL_SERVER=${EMAIL_SERVER}
- EMAIL_FROM=${EMAIL_FROM}
ports:
- "3000:3000"

Expand Down

0 comments on commit 3046691

Please sign in to comment.