Spaces:
Paused
Paused
| version: "3.9" | |
| services: | |
| # ββ Webhook Server ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| webhook: | |
| build: . | |
| ports: | |
| - "8000:8000" | |
| env_file: .env | |
| depends_on: | |
| postgres: | |
| condition: service_healthy | |
| redis: | |
| condition: service_healthy | |
| volumes: | |
| - ./app:/app/app # hot-reload ΰΉΰΈ dev mode | |
| command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload | |
| # ββ PostgreSQL ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| postgres: | |
| image: postgres:16-alpine | |
| environment: | |
| POSTGRES_USER: user | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_DB: sentiment_db | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U user -d sentiment_db"] | |
| interval: 5s | |
| timeout: 5s | |
| retries: 5 | |
| # ββ Redis βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| redis: | |
| image: redis:7-alpine | |
| ports: | |
| - "6379:6379" | |
| healthcheck: | |
| test: ["CMD", "redis-cli", "ping"] | |
| interval: 5s | |
| timeout: 3s | |
| retries: 5 | |
| volumes: | |
| postgres_data: | |