upd: sync compose.yml and .env.example with all env vars in env.ts

Add missing required vars: API_KEY, MINIO_*, and optional REDIS_URL, BUN_PUBLIC_BASE_URL

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-29 12:01:44 +08:00
parent 06794524fd
commit dbbe53584c
2 changed files with 30 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
# App # App
PORT=3000 PORT=3000
NODE_ENV=development NODE_ENV=development
BUN_PUBLIC_BASE_URL=http://localhost:3000
# Dev Inspector # Dev Inspector
REACT_EDITOR=code REACT_EDITOR=code
@@ -13,12 +14,20 @@ DIRECT_URL=postgresql://user:password@localhost:5432/base-template
GOOGLE_CLIENT_ID= GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET= GOOGLE_CLIENT_SECRET=
# Role # Super Admin (comma-separated emails)
SUPER_ADMIN_EMAIL=admin@example.com SUPER_ADMIN_EMAIL=admin@example.com
# API Key for external clients (e.g. mobile apps) # API Key for external clients (e.g. mobile apps)
API_KEY=your-secret-api-key-here API_KEY=your-secret-api-key-here
# Telegram Notification (optional) # MinIO (object storage for bug report images)
TELEGRAM_NOTIFY_TOKEN= MINIO_ENDPOINT=
TELEGRAM_NOTIFY_CHAT_ID= MINIO_PORT=443
MINIO_USE_SSL=true
MINIO_ACCESS_KEY=
MINIO_SECRET_KEY=
MINIO_BUCKET=
MINIO_UPLOAD_DIR=bug-reports
# Redis (optional — enables App Logs feature on /dev)
REDIS_URL=

View File

@@ -4,17 +4,30 @@ services:
container_name: monitoring-app-stg container_name: monitoring-app-stg
restart: unless-stopped restart: unless-stopped
environment: environment:
# App
- PORT=${PORT:-3000}
- NODE_ENV=${NODE_ENV:-production}
- BUN_PUBLIC_BASE_URL=${BUN_PUBLIC_BASE_URL}
# Database # Database
- DATABASE_URL=${DATABASE_URL} - DATABASE_URL=${DATABASE_URL}
- DIRECT_URL=${DIRECT_URL} - DIRECT_URL=${DIRECT_URL}
# Google OAuth # Google OAuth
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID} - GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET} - GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
# App # Super Admin
- PORT=${PORT:-3000}
- NODE_ENV=${NODE_ENV:-production}
# Admin (initial Super Admin emails, comma-separated)
- SUPER_ADMIN_EMAIL=${SUPER_ADMIN_EMAIL} - SUPER_ADMIN_EMAIL=${SUPER_ADMIN_EMAIL}
# API Key
- API_KEY=${API_KEY}
# MinIO (object storage)
- MINIO_ENDPOINT=${MINIO_ENDPOINT}
- MINIO_PORT=${MINIO_PORT:-443}
- MINIO_USE_SSL=${MINIO_USE_SSL:-true}
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY}
- MINIO_BUCKET=${MINIO_BUCKET}
- MINIO_UPLOAD_DIR=${MINIO_UPLOAD_DIR:-bug-reports}
# Redis (optional — app logs feature)
- REDIS_URL=${REDIS_URL:-}
networks: networks:
- public-net - public-net
- postgres-net-stg - postgres-net-stg