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.
22 lines
393 B
YAML
22 lines
393 B
YAML
---
|
|
services:
|
|
games-api:
|
|
image: games-api
|
|
build: .
|
|
container_name: games-api
|
|
environment:
|
|
- ACCESS_TOKEN_SECRET=
|
|
- REFRESH_TOKEN_SECRET=
|
|
- JWT_EXPIRE=
|
|
- MONGO_URI=
|
|
- SMTP_HOST=
|
|
- SMTP_PORT=
|
|
- SMTP_USER=
|
|
- SMTP_PASSWORD=
|
|
- FROM_EMAIL=
|
|
- FROM_NAME=
|
|
- SECURE=false
|
|
- NODE_ENV=
|
|
ports:
|
|
- 5000:5000
|