From f72ca08396dda1b8a714eeb2954c79386b02a039 Mon Sep 17 00:00:00 2001 From: ph34444 Date: Mon, 16 Mar 2026 15:42:50 +0100 Subject: [PATCH] infra: add Milvus vector DB and PostgreSQL --- .env | 8 +++++++- compose.yaml | 40 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 44d3193..86f6564 100644 --- a/.env +++ b/.env @@ -12,4 +12,10 @@ SUBDOMAIN=n8n GENERIC_TIMEZONE=Europe/Berlin # The email address to use for the TLS/SSL certificate creation -SSL_EMAIL=patrick.haas@eks-intec.de \ No newline at end of file +SSL_EMAIL=patrick.haas@eks-intec.de + +# PostgreSQL Configuration +POSTGRES_PASSWORD=change_me_securely + +# Milvus Configuration +MILVUS_API_URL=http://milvus:19530 \ No newline at end of file diff --git a/compose.yaml b/compose.yaml index 1c7a7a6..fbecc8b 100644 --- a/compose.yaml +++ b/compose.yaml @@ -56,6 +56,44 @@ services: - ./local-files:/files - ./crts:/opt/custom-certificates + milvus: + image: milvusdb/milvus:latest + restart: always + ports: + - "19530:19530" + - "9091:9091" + environment: + - ETCD_ENDPOINTS=etcd:2379 + - MINIO_ADDRESS=minio:9000 + volumes: + - milvus_data:/var/lib/milvus + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 30s + + postgres: + image: postgres:15-alpine + restart: always + ports: + - "5432:5432" + environment: + - POSTGRES_DB=n8n_kb + - POSTGRES_USER=kb_user + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + volumes: + - postgres_data:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U kb_user -d n8n_kb"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 10s + volumes: n8n_data: - traefik_data: \ No newline at end of file + traefik_data: + milvus_data: + postgres_data: \ No newline at end of file