diff --git a/Dockerfile b/backend/Dockerfile similarity index 100% rename from Dockerfile rename to backend/Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ad74178 --- /dev/null +++ b/docker-compose.yml @@ -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: \ No newline at end of file