diff --git a/.gitignore b/.gitignore index b734baa..1f42b9c 100644 --- a/.gitignore +++ b/.gitignore @@ -107,3 +107,6 @@ dist/ # Open WebUI Pipelines pipelines/ !pipelines/override.env + +# Qdrant +qdrant/storage diff --git a/compose.qdrant.yml b/compose.qdrant.yml new file mode 100644 index 0000000..cea12e1 --- /dev/null +++ b/compose.qdrant.yml @@ -0,0 +1,27 @@ +services: + qdrant: + image: qdrant/qdrant:${HARBOR_QDRANT_VERSION} + env_file: + - ./.env + - ./qdrant/override.env + container_name: ${HARBOR_CONTAINER_PREFIX}.qdrant + volumes: + - ./qdrant/storage:/qdrant/storage + entrypoint: ["/qdrant/entrypoint.sh"] + ports: + - ${HARBOR_QDRANT_HOST_PORT}:6333 + - ${HARBOR_QDRANT_HOST_GRPC_PORT}:6334 + environment: + - QDRANT__SERVICE__API_KEY=${HARBOR_QDRANT_API_KEY} + - QDRANT__SERVICE__READ_ONLY_API_KEY=${HARBOR_QDRANT_READ_ONLY_API_KEY} + - QDRANT__SERVICE__JWT_RBAC=${HARBOR_QDRANT_JWT_RBAC} + - QDRANT__TELEMETRY_DISABLED=${HARBOR_QDRANT_DISABLE_TELEMETRY} + - QDRANT__LOG_LEVEL=${HARBOR_QDRANT_LOG_LEVEL} + healthcheck: + test: ["CMD", "bash", "-c", ":> /dev/tcp/127.0.0.1/6333"] + interval: 1s + timeout: 3s + retries: 10 + start_period: 20s + networks: + - harbor-network diff --git a/profiles/default.env b/profiles/default.env index 8157422..e90bb8f 100644 --- a/profiles/default.env +++ b/profiles/default.env @@ -428,6 +428,15 @@ HARBOR_CHATNIO_REDIS_VERSION="latest" HARBOR_CHATNIO_IMAGE="programzmh/chatnio" HARBOR_CHATNIO_VERSION="latest" +# Qdrant +HARBOR_QDRANT_HOST_PORT=34221 +HARBOR_QDRANT_HOST_GRPC_PORT=34222 +HARBOR_QDRANT_VERSION="latest" +HARBOR_QDRANT_API_KEY="4f81ba2b82664d63cc6af620f0cd1ba46e5894c2f4f148a94ec96c2c70ac5690" +HARBOR_QDRANT_READ_ONLY_API_KEY="ce103bf74f5de30d192b3b0151eeef95ba50ba99a87cc9c3ccf00ada033290db" +HARBOR_QDRANT_JWT_RBAC=true +HARBOR_QDRANT_DISABLE_TELEMETRY=true +HARBOR_QDRANT_LOG_LEVEL="INFO" # ============================================ # Service Configuration. diff --git a/qdrant/override.env b/qdrant/override.env new file mode 100644 index 0000000..3cbba08 --- /dev/null +++ b/qdrant/override.env @@ -0,0 +1,3 @@ +# This file can be used for additional environment variables +# specifically for the "qdrant" service and CLI. +# You can also use the "harbor env" command to set these variables.