chore(compose): sync example env with codebase
Add NODE_ENV (used by config/db.js and controllers/auth.js to switch MONGO_URI/MONGO_DEV_URI and secure cookies). Drop PATH, BUN_RUNTIME_TRANSPILER_CACHE_PATH, and BUN_INSTALL_BIN leaked from container runtime env; they are not read by the app. Drop JWT_EXPIRES duplicate; app reads JWT_EXPIRE (models/User.js expiresIn), matching .env. Restore SECURE=false default (used by utils/sendEmail.js via yn(Bun.env.SECURE)). Keep list aligned with Dockerfile and .env keys so the example stays a valid template for server deployments.
This commit is contained in:
@@ -6,8 +6,8 @@ services:
|
||||
container_name: games-api
|
||||
environment:
|
||||
- ACCESS_TOKEN_SECRET=
|
||||
- JWT_EXPIRE=
|
||||
- REFRESH_TOKEN_SECRET=
|
||||
- JWT_EXPIRE=
|
||||
- MONGO_URI=
|
||||
- SMTP_HOST=
|
||||
- SMTP_PORT=
|
||||
@@ -16,6 +16,6 @@ services:
|
||||
- FROM_EMAIL=
|
||||
- FROM_NAME=
|
||||
- SECURE=false
|
||||
- NODE_ENV=
|
||||
ports:
|
||||
- 5000:5000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user