From 689610b434121df094bbb06a0a38fa52898b9f07 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 5 Sep 2026 20:01:30 -0400 Subject: [PATCH] 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. --- docker-compose.example.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.example.yml b/docker-compose.example.yml index f1b5ff7..9ed3908 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -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 -