feat: add .env file for secrets and update docker-compose to use new environment variables
This commit is contained in:
6
.env
Normal file
6
.env
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Secrets for Docker Compose
|
||||||
|
JWT_SECRET=your_jwt_secret_here
|
||||||
|
GOOGLE_CLIENT_ID=your_google_client_id_here
|
||||||
|
GOOGLE_CLIENT_SECRET=your_google_client_secret_here
|
||||||
|
GOOGLE_REFRESH_TOKEN=your_google_refresh_token_here
|
||||||
|
EMAIL_USERNAME=your_email@gmail.com
|
||||||
@@ -8,6 +8,11 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- mongoURI=mongodb://mongo:27017/appointment_to_examiner
|
- mongoURI=mongodb://mongo:27017/appointment_to_examiner
|
||||||
- CORS_ORIGIN=http://localhost:10091
|
- CORS_ORIGIN=http://localhost:10091
|
||||||
|
- JWT_SECRET=${JWT_SECRET}
|
||||||
|
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
|
||||||
|
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
|
||||||
|
- GOOGLE_REFRESH_TOKEN=${GOOGLE_REFRESH_TOKEN}
|
||||||
|
- EMAIL_USERNAME=${EMAIL_USERNAME}
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongo
|
- mongo
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user