Update compose.yaml for Tracearr service to include production environment variables and database configurations. This enhances deployment settings by specifying NODE_ENV, PORT, HOST, DATABASE_URL, REDIS_URL, JWT_SECRET, COOKIE_SECRET, and CORS_ORIGIN, improving overall service configuration and security.

This commit is contained in:
Nikholas Pcenicni
2026-03-30 22:49:01 -04:00
parent 3a6e5dff5b
commit 16948c62f9

View File

@@ -12,11 +12,16 @@ services:
ports: ports:
- "${PORT:-3000}:3000" - "${PORT:-3000}:3000"
environment: environment:
- NODE_ENV=production
- PORT=3000
- HOST=0.0.0.0
- TZ=${TZ:-UTC} - TZ=${TZ:-UTC}
- DATABASE_URL=postgres://tracearr:${DB_PASSWORD:-tracearr}@timescale:5432/tracearr
- REDIS_URL=redis://redis:6379
- JWT_SECRET=${JWT_SECRET}
- COOKIE_SECRET=${COOKIE_SECRET}
- CORS_ORIGIN=${CORS_ORIGIN:-*}
- LOG_LEVEL=${LOG_LEVEL:-info} - LOG_LEVEL=${LOG_LEVEL:-info}
# Optional: Override auto-generated secrets
# - JWT_SECRET=${JWT_SECRET}
# - COOKIE_SECRET=${COOKIE_SECRET}
volumes: volumes:
- tracearr_postgres:/data/postgres - tracearr_postgres:/data/postgres
- tracearr_redis:/data/redis - tracearr_redis:/data/redis