support-bot-saas/docker-compose.yml
ed0ss 11d018d4f6
Some checks are pending
CI / lint-backend (push) Waiting to run
CI / lint-frontend (push) Waiting to run
CI / build-backend (push) Blocked by required conditions
CI / build-frontend (push) Blocked by required conditions
feat: docker-compose для локального запуска, .env.example, инструкция в README
2026-06-25 12:24:57 +03:00

58 lines
1.2 KiB
YAML

services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: support_bot
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 3s
retries: 10
redis:
image: redis:7-alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
qdrant:
image: qdrant/qdrant
volumes:
- qdrant_storage:/qdrant/storage
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6333/healthz"]
interval: 5s
timeout: 3s
retries: 10
backend:
build: ./backend
env_file: ./backend/.env
environment:
DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/support_bot
REDIS_URL: redis://redis:6379/0
QDRANT_URL: http://qdrant:6333
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
qdrant:
condition: service_healthy
frontend:
build: ./frontend
ports:
- "8080:80"
depends_on:
- backend
volumes:
pgdata:
qdrant_storage: