Spaces:
Configuration error
Configuration error
Niranjan-Murugarasu024
feat: TradeSense AI Chairman Edition production release ready for Hugging Face Spaces
0125724 Download docker-compose.yml from BlueMen/tradesenseAi: direct link, hf CLI and curl.
- Browser
- Download file 1.81 kB
-
https://huggingface.co/spaces/BlueMen/tradesenseAi/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/BlueMen/tradesenseAi/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/BlueMen/tradesenseAi/resolve/main/docker-compose.yml
1.81 kB
| version: '3.8' | |
| services: | |
| postgres: | |
| image: postgres:16-alpine | |
| container_name: tradesense_postgres | |
| restart: unless-stopped | |
| environment: | |
| POSTGRES_DB: tradesense | |
| POSTGRES_USER: tradesense_user | |
| POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-tradesense_secure_pass} | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U tradesense_user -d tradesense"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 5 | |
| command: > | |
| postgres | |
| -c max_connections=100 | |
| -c shared_buffers=256MB | |
| -c effective_cache_size=768MB | |
| -c maintenance_work_mem=64MB | |
| -c checkpoint_completion_target=0.9 | |
| -c wal_buffers=16MB | |
| -c default_statistics_target=100 | |
| -c random_page_cost=1.1 | |
| -c effective_io_concurrency=200 | |
| -c work_mem=4MB | |
| -c min_wal_size=1GB | |
| -c max_wal_size=4GB | |
| tradesense-api: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| container_name: tradesense_enterprise_api | |
| restart: unless-stopped | |
| depends_on: | |
| postgres: | |
| condition: service_healthy | |
| ports: | |
| - "8000:8000" | |
| environment: | |
| - APP_ENV=production | |
| - DEBUG=false | |
| - DATABASE_URL=postgresql+psycopg2://tradesense_user:${POSTGRES_PASSWORD:-tradesense_secure_pass}@postgres:5432/tradesense | |
| - DB_POOL_SIZE=20 | |
| - DB_MAX_OVERFLOW=10 | |
| - DB_POOL_TIMEOUT=30 | |
| - DB_POOL_RECYCLE=1800 | |
| - TRADESENSE_ADMIN_API_KEY=${TRADESENSE_ADMIN_API_KEY:-ts_admin_prod_secure_key} | |
| volumes: | |
| - tradesense_data:/app/data | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health/ready"] | |
| interval: 15s | |
| timeout: 5s | |
| retries: 3 | |
| volumes: | |
| postgres_data: | |
| tradesense_data: | |