feat: add .env file for secrets and update docker-compose to use new environment variables

This commit is contained in:
2025-12-08 16:20:16 +05:30
parent 093af3a36f
commit f7a6753a46
2 changed files with 11 additions and 0 deletions

6
.env Normal file
View 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

View File

@@ -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: