Configuration¶
ft.supply reads runtime settings from environment variables via ft.core.config.Settings.
Core environment variables¶
| Variable | Default | Purpose |
|---|---|---|
POSTGRES_HOST |
localhost |
Postgres host |
POSTGRES_PORT |
5432 |
Postgres port |
POSTGRES_DB |
ftsupply |
Database name |
POSTGRES_USER |
ft |
Database user |
POSTGRES_PASSWORD |
ft |
Database password |
REDIS_URL |
redis://localhost:6379/0 |
Redis connection URL |
MINIO_ENDPOINT |
localhost:9000 |
MinIO endpoint |
MINIO_ACCESS_KEY |
minioadmin |
MinIO access key |
MINIO_SECRET_KEY |
minioadmin |
MinIO secret key |
API_HOST |
0.0.0.0 |
API bind host |
API_PORT |
8000 |
API bind port |
ADMIN_PANEL_HOST |
0.0.0.0 |
Admin panel bind host |
ADMIN_PANEL_PORT |
8010 |
Admin panel bind port |
ADMIN_PANEL_USERNAME |
admin |
Admin panel basic auth username |
ADMIN_PANEL_PASSWORD |
admin |
Admin panel basic auth password |
WORKER_BATCH_SIZE |
100 |
Batch size for workers |
WORKER_POLL_INTERVAL_SECONDS |
1.0 |
Worker polling interval |
Derived connection strings¶
- Async SQLAlchemy URL is built from Postgres variables.
- Sync URL is used for scripts and direct SQL operations.
Config files¶
- Example defaults:
.env.example - Staging sample:
docker/staging.env.example