36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
# Copy this file to config/setup_production.env and replace values with production secrets
|
|
|
|
# Container image and runtime configuration
|
|
CALMINER_IMAGE=registry.example.com/calminer/api:latest
|
|
CALMINER_DOMAIN=calminer.example.com
|
|
TRAEFIK_ACME_EMAIL=ops@example.com
|
|
CALMINER_API_PORT=8000
|
|
UVICORN_WORKERS=4
|
|
UVICORN_LOG_LEVEL=info
|
|
CALMINER_NETWORK=calminer_backend
|
|
API_LIMIT_CPUS=1.0
|
|
API_LIMIT_MEMORY=1g
|
|
API_RESERVATION_MEMORY=512m
|
|
TRAEFIK_LIMIT_CPUS=0.5
|
|
TRAEFIK_LIMIT_MEMORY=512m
|
|
POSTGRES_LIMIT_CPUS=1.0
|
|
POSTGRES_LIMIT_MEMORY=2g
|
|
POSTGRES_RESERVATION_MEMORY=1g
|
|
|
|
# Application database connection
|
|
DATABASE_DRIVER=postgresql+psycopg2
|
|
DATABASE_HOST=production-db.internal
|
|
DATABASE_PORT=5432
|
|
DATABASE_NAME=calminer
|
|
DATABASE_USER=calminer_app
|
|
DATABASE_PASSWORD=ChangeMe123!
|
|
DATABASE_SCHEMA=public
|
|
|
|
# Optional consolidated SQLAlchemy URL (overrides granular settings when set)
|
|
# DATABASE_URL=postgresql+psycopg2://calminer_app:ChangeMe123!@production-db.internal:5432/calminer
|
|
|
|
# Superuser credentials used by scripts/setup_database.py for migrations/seed data
|
|
DATABASE_SUPERUSER=postgres
|
|
DATABASE_SUPERUSER_PASSWORD=ChangeMeSuper123!
|
|
DATABASE_SUPERUSER_DB=postgres
|