infra: add Milvus vector DB and PostgreSQL
This commit is contained in:
8
.env
8
.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
|
||||
SSL_EMAIL=patrick.haas@eks-intec.de
|
||||
|
||||
# PostgreSQL Configuration
|
||||
POSTGRES_PASSWORD=change_me_securely
|
||||
|
||||
# Milvus Configuration
|
||||
MILVUS_API_URL=http://milvus:19530
|
||||
40
compose.yaml
40
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:
|
||||
traefik_data:
|
||||
milvus_data:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user