> ## 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 シングルノード

## 必要条件

* Dockerのインストール
  * [Dockerのインストール](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository)
  * [非rootユーザーとしてDockerを管理する](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user)
* VMのポート6333を開く

## インストール

### `QDRANT__SERVICE__API_KEY`は必須の環境変数です

以下のコマンドを使用してランダムな32バイトの16進文字列を生成できます:

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

生成された文字列をコピーして、`docker-compose.yml`ファイルの`#REPLACE_ME#`を置き換えます。

### `docker-compose.yml`ファイルを作成し、`#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#
```

### Qdrant サービスを起動する

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