78 lines
2.2 KiB
YAML
78 lines
2.2 KiB
YAML
name: cortex
|
|
|
|
services:
|
|
cortex-db:
|
|
image: pgvector/pgvector:pg17
|
|
container_name: cortex-db
|
|
environment:
|
|
POSTGRES_DB: cortex
|
|
POSTGRES_USER: cortex
|
|
POSTGRES_PASSWORD: cortex_dev_password
|
|
ports:
|
|
- "54329:5432"
|
|
volumes:
|
|
- cortex-postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U cortex -d cortex"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 20
|
|
|
|
cortex-embeddings:
|
|
image: ghcr.io/huggingface/text-embeddings-inference:cpu-latest
|
|
container_name: cortex-embeddings
|
|
command: ["--model-id", "BAAI/bge-small-en-v1.5", "--port", "80"]
|
|
ports:
|
|
- "8088:80"
|
|
volumes:
|
|
- cortex-embeddings-data:/data
|
|
|
|
cortex-app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: cortex-app:local
|
|
container_name: cortex-app
|
|
depends_on:
|
|
cortex-db:
|
|
condition: service_healthy
|
|
cortex-embeddings:
|
|
condition: service_started
|
|
environment:
|
|
ASPNETCORE_URLS: http://+:8080
|
|
ASPNETCORE_ENVIRONMENT: Development
|
|
ConnectionStrings__Cortex: Host=cortex-db;Port=5432;Database=cortex;Username=cortex;Password=cortex_dev_password;GSS Encryption Mode=Disable
|
|
Embedding__BaseUrl: http://cortex-embeddings
|
|
Embedding__Model: BAAI/bge-small-en-v1.5
|
|
Cortex__EmbeddingModel: BAAI/bge-small-en-v1.5
|
|
Cortex__EmbeddingDimensions: 384
|
|
ports:
|
|
- "5117:8080"
|
|
|
|
cortex-web:
|
|
profiles: ["ui"]
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.web
|
|
image: cortex-web:local
|
|
container_name: cortex-web
|
|
depends_on:
|
|
cortex-db:
|
|
condition: service_healthy
|
|
cortex-embeddings:
|
|
condition: service_started
|
|
environment:
|
|
ASPNETCORE_URLS: http://+:8080
|
|
ASPNETCORE_ENVIRONMENT: Development
|
|
ConnectionStrings__Cortex: Host=cortex-db;Port=5432;Database=cortex;Username=cortex;Password=cortex_dev_password;GSS Encryption Mode=Disable
|
|
Embedding__BaseUrl: http://cortex-embeddings
|
|
Embedding__Model: BAAI/bge-small-en-v1.5
|
|
Cortex__EmbeddingModel: BAAI/bge-small-en-v1.5
|
|
Cortex__EmbeddingDimensions: 384
|
|
ports:
|
|
- "5118:8080"
|
|
|
|
volumes:
|
|
cortex-postgres-data:
|
|
cortex-embeddings-data:
|