mirror of
https://github.com/kjanat/livegraphs-django.git
synced 2026-02-13 12:55:42 +01:00
Introduces uv-based Docker workflow with non-root runtime, cached installs, and uv-run for web and Celery. Updates docker-compose to Postgres + Redis, loads .env, and removes source bind mount for reproducible builds. Switches settings to use Postgres when env is present with SQLite fallback; broadens allowed hosts for containerized development. Adds psycopg2-binary and updates sample env for Redis in Docker. Adds company scoping to external data models and links sessions during ingestion; provides management commands to seed a Jumbo company/users and sync external chat data into the dashboard. Includes .dockerignore, TypeScript config and typings, and minor template/docs tweaks. Requires database migration.
29 lines
946 B
Plaintext
29 lines
946 B
Plaintext
# .env.sample - rename to .env and update with actual credentials
|
|
# Django settings
|
|
# Generate secret with e.g. `openssl rand -hex 32`
|
|
DJANGO_SECRET_KEY=your-secure-secret-key
|
|
DJANGO_DEBUG=True
|
|
|
|
# Database configuration (optional - local development uses SQLite by default)
|
|
# Uncomment these to use PostgreSQL locally:
|
|
# DATABASE_URL=postgresql://postgres:postgres@localhost:5432/dashboard_db
|
|
# POSTGRES_DB=dashboard_db
|
|
# POSTGRES_USER=postgres
|
|
# POSTGRES_PASSWORD=postgres
|
|
# POSTGRES_HOST=localhost
|
|
# POSTGRES_PORT=5432
|
|
#
|
|
# Note: Docker Compose automatically uses PostgreSQL via docker-compose.yml environment variables
|
|
|
|
# External API credentials
|
|
EXTERNAL_API_USERNAME=your-api-username
|
|
EXTERNAL_API_PASSWORD=your-api-password
|
|
|
|
# Redis settings for Celery
|
|
REDIS_URL=redis://localhost:6379/0
|
|
CELERY_BROKER_URL=redis://localhost:6379/0
|
|
CELERY_RESULT_BACKEND=redis://redis:6379/0
|
|
|
|
# Celery Task Schedule (in seconds)
|
|
CHAT_DATA_FETCH_INTERVAL=3600
|