> ## Documentation Index
> Fetch the complete documentation index at: https://enterprise-docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Qdrant Single Node

## Requirements

* Docker installed
  * [Install Docker](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository)
  * [Manage Docker as a non-root user](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user)
* Open port 6333 on the VM

## Installation

### `QDRANT__SERVICE__API_KEY` is a required environment variable

You can generate a random 32-byte hex string using the following command:

```bash theme={null}
openssl rand -hex 32
```

Copy and paste the generated string to replace `#REPLACE_ME#` in the `docker-compose.yml` file.

### Create the `docker-compose.yml` file, and replace `#REPLACE_ME#`

```bash theme={null}
version: "3.8"
services:
  qdrant:
    image: langgenius/qdrant:v1.7.3
    network_mode: "host"
    restart: always
    volumes:
      - /data/qdrant/data/:/qdrant/storage
    environment:
      QDRANT__SERVICE__API_KEY: #REPLACE_ME#
```

### Start the qdrant service

```bash theme={null}
docker-compose up -d
```
