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

Docker #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions client/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This is a sample .env file
# Duplicate this file as .env at the same file location
# and update the environment variables to match your desired config


REACT_APP_GOOGLE_CLIENT_ID = #Replace this comment with your Google Client ID
REACT_APP_API = http://localhost:5000
REACT_APP_URL = http://localhost
2 changes: 2 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
container_name: client
image: client-prod
build:
context: .
dockerfile: ./client/Dockerfile
target: production
ports:
Expand All @@ -18,6 +19,7 @@ services:
container_name: server
image: server-prod
build:
context: .
dockerfile: ./server/Dockerfile
ports:
- '5000:5000'
Expand Down
11 changes: 11 additions & 0 deletions server/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This is a sample .env file
# Duplicate this file as .env at the same file location
# and update the environment variables to match your desired config

DB_URL = mongodb://mongo:27017/arch
PORT = 5000
SECRET = #Replace this comment with your Google Secret which you received during the creation of your credentials (see README.md)
SMTP_HOST = #smtp.gmail.com
SMTP_PORT = #587
SMTP_USER = #Your email addresss
SMTP_PASS = #Your email password. If you use 2FA then create an app password for mail and use that generated password here. Instructions: https://support.google.com/accounts/answer/185833?hl=en