line-webhook / docker-compose.yml
Therdpoom's picture
Upload 10 files
82eac1b verified
Raw
History Blame Contribute Delete
1.59 kB
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: