Configuration
Configure mol-platform using environment variables.
Environment Variables
Copy .env.example to .env and adjust the values:
cp .env.example .env
Backend Variables
| Variable | Description | Default |
|---|---|---|
DATABASE_URL |
PostgreSQL connection string | postgresql://user:password@database/mol_platform |
CELERY_BROKER_URL |
Redis URL for Celery broker | redis://redis:6379/0 |
CELERY_RESULT_BACKEND |
Redis URL for Celery results | redis://redis:6379/0 |
Frontend Variables
| Variable | Description | Default |
|---|---|---|
REACT_APP_BACKEND_URL |
Backend API URL | http://localhost:8000 |
Docker Configuration
When using Docker Compose, environment variables are set in the docker-compose.yml file.
Local Development
For local development without Docker:
- Backend: Set environment variables or create
.envfile inbackend/directory - Frontend: Set
REACT_APP_BACKEND_URLinfrontend/.envor environment
Security Notes
- Never commit
.envfiles to version control - Use strong passwords in production
- Configure HTTPS in production deployments