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:
@@ -12,11 +12,16 @@ services:
|
||||
ports:
|
||||
- "${PORT:-3000}:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
- HOST=0.0.0.0
|
||||
- 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}
|
||||
# Optional: Override auto-generated secrets
|
||||
# - JWT_SECRET=${JWT_SECRET}
|
||||
# - COOKIE_SECRET=${COOKIE_SECRET}
|
||||
volumes:
|
||||
- tracearr_postgres:/data/postgres
|
||||
- tracearr_redis:/data/redis
|
||||
|
||||
Reference in New Issue
Block a user