refactor: use environment-specific .env files
- Rename .env.example to .env.development.example - Update docker-compose.yml to use env_file for dev backend - Update .gitignore to ignore .env.development and .env.production - Remove generic .env and .env.example in favor of: * .env.development (dev) + .env.development.example (template) * .env.production (prod) + .env.production.example (template)
This commit is contained in:
@@ -12,8 +12,8 @@ DATABASE_URL=postgresql://spotlightcam:spotlightcam123@db:5432/spotlightcam
|
|||||||
JWT_SECRET=dev-secret-key-12345-change-in-production
|
JWT_SECRET=dev-secret-key-12345-change-in-production
|
||||||
JWT_EXPIRES_IN=24h
|
JWT_EXPIRES_IN=24h
|
||||||
|
|
||||||
# AWS SES (Phase 1.5)
|
# AWS SES (REPLACE WITH YOUR CREDENTIALS)
|
||||||
AWS_REGION=us-east-1
|
AWS_REGION=eu-central-1
|
||||||
AWS_ACCESS_KEY_ID=your-aws-access-key-id
|
AWS_ACCESS_KEY_ID=your-aws-access-key-id
|
||||||
AWS_SECRET_ACCESS_KEY=your-aws-secret-access-key
|
AWS_SECRET_ACCESS_KEY=your-aws-secret-access-key
|
||||||
SES_FROM_EMAIL=noreply@spotlight.cam
|
SES_FROM_EMAIL=noreply@spotlight.cam
|
||||||
3
backend/.gitignore
vendored
3
backend/.gitignore
vendored
@@ -2,7 +2,8 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
.env
|
.env.development
|
||||||
|
.env.production
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
logs/
|
logs/
|
||||||
|
|||||||
@@ -94,6 +94,8 @@ services:
|
|||||||
context: ./backend
|
context: ./backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: spotlightcam-backend
|
container_name: spotlightcam-backend
|
||||||
|
env_file:
|
||||||
|
- ./backend/.env.development
|
||||||
expose:
|
expose:
|
||||||
- "3000"
|
- "3000"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user