docker compose

This commit is contained in:
Luluka.Badikina 2025-12-21 23:23:50 +03:00
parent 4649882c27
commit 84556dd220
2 changed files with 54 additions and 0 deletions

54
docker-compose.yml Normal file
View File

@ -0,0 +1,54 @@
services:
postgres:
image: postgres:15-alpine
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: lawyer_ai
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
qdrant:
image: qdrant/qdrant:latest
restart: unless-stopped
ports:
- "6333:6333"
volumes:
- qdrant_data:/qdrant/storage
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
backend:
build: ./backend
restart: unless-stopped
environment:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: lawyer_ai
QDRANT_HOST: qdrant
QDRANT_PORT: 6333
REDIS_HOST: redis
REDIS_PORT: 6379
DEBUG: "true"
ports:
- "8000:8000"
depends_on:
- postgres
- qdrant
- redis
volumes:
postgres_data:
qdrant_data:
redis_data: