diff --git a/client/.env.example b/client/.env.example new file mode 100644 index 00000000..509672c7 --- /dev/null +++ b/client/.env.example @@ -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 diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index afc47983..a7e2ae1e 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -4,6 +4,7 @@ services: container_name: client image: client-prod build: + context: . dockerfile: ./client/Dockerfile target: production ports: @@ -18,6 +19,7 @@ services: container_name: server image: server-prod build: + context: . dockerfile: ./server/Dockerfile ports: - '5000:5000' diff --git a/server/.env.example b/server/.env.example new file mode 100644 index 00000000..95331f0b --- /dev/null +++ b/server/.env.example @@ -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