Qdrant with Docker Compose

A Compose file gives a single-node or small Qdrant setup a repeatable definition, but only if the image is pinned, the API key and TLS are set, and storage sits on block disks. This page covers the file, the versions it needs and how upgrades are done.

On this page

When Qdrant with Docker Compose fits a small production footprint

Qdrant with Docker Compose is a sound choice when a team needs vector search on one host, or on a small group of hosts it controls, and does not yet need a distributed cluster. Qdrant is an Apache-2.0 open-source engine that is free to self-host, so the decision is about operating the service, not licensing it. A single Compose service that runs one Qdrant node, with its storage on a host disk you manage, covers many internal search workloads. The trade-off is that Compose describes one set of containers on one machine. It does not give you the node failover, shard placement or rebalancing that a distributed Qdrant cluster provides, and a host failure takes the service down until you recover it.

A Compose file for this setup defines the image (pinned to a specific release tag rather than latest), the named volume that holds /qdrant/storage and snapshots, the published ports, any inline configs such as a production.yaml override, a healthcheck that tells Docker whether the API responds, and a restart policy so the container returns after a reboot. Each of these is a decision you own. Confirm that your host uses block storage with a POSIX file system, because Qdrant cannot run on NFS or object storage, and that the API is not exposed on all interfaces, since Qdrant ships with no authentication configured.

Move to Kubernetes or a distributed cluster when the workload needs more than one node to stay available, when you need shards spread across machines, or when your platform team already runs Kubernetes and expects workloads to be managed there. The Qdrant distributed deployment docs recommend at least three nodes for production clusters so that quorum survives a node failure. If your plan depends on that behavior, a single Compose host is the wrong target. Ask your team which failure you are designing for: a container crash or a lost host. The answer determines whether Compose is enough.

Compose options for Qdrant and when each one fits

This table compares the main Compose settings for a Qdrant service: image tag, configuration method, storage mounts, healthcheck, restart policy and API key secrets. Read each row as a decision with a trade-off, and check the version requirements for inline configs before you choose that route.

SettingOption and when it fitsTrade-off to weigh
Image tagA pinned release tag, such as the version your team has tested, for any environment that matters. Pinned tags make upgrades an explicit change to docker-compose.yml.Someone must review release notes and upgrade on purpose. Avoid the latest tag, which changes without a change record.
ConfigurationInline configs in the Compose file, for a small single-node setup where one file holds everything. Requires Docker Compose v2.23.1 or later, Docker Engine v25.0.0 or later, or Docker Desktop v4.26.0 or later.Hosts on older Compose or Engine versions cannot use inline configs. Confirm your versions before you rely on this route.
ConfigurationA mounted production.yaml file, when you want configuration in a separate file under version control and a Compose file that works on older Docker versions.Two files must stay in step. A bind-mounted file ties the setup to the host path, so keep it in the same repository as the Compose file.
Storage mountsNamed volumes for the storage directory and the snapshots directory, on a Linux host with a block-backed disk. Suits most single-node production hosts.Volumes are tied to the Docker host, so backup and restore are your job. Confirm the container paths in the installation docs.
Storage mountsBind mounts to a host directory, when operators need direct file access or the data must sit on a specific disk or path.Path permissions and ownership become your job. Bind-mounted folders on Windows or WSL-backed Docker carry data loss risk, so avoid them there.
HealthcheckA healthcheck that tells Compose whether the service is ready, useful for dependent services and for detecting a stuck container.The probe command and port must come from the installation docs. Confirm them with your environment before you copy any example.
Restart policyA restart policy such as unless-stopped, for a single node that should come back after a host reboot.A restart loop can hide a storage or configuration fault. Pair it with monitoring and logs so failures are visible.
API key secretDocker Compose secrets or an environment file kept outside version control, for teams that need the key out of the Compose file.Secrets in a plain .env file are still readable by anyone with host access. Set file permissions and limit who can read the host.

How to write and start a Qdrant Compose file

This sequence takes a single-node Qdrant stack from a version check to a running container with pinned image, persistent named volumes, API key and TLS in place, and a verified test collection. Each step ends with a check you can run before moving on.

  1. Confirm the Compose and Engine versions

    Before writing anything, confirm that your Docker Compose, Docker Engine or Docker Desktop version meets the floor for inline configs. The Qdrant installation docs require Docker Compose v2.23.1 or later, Docker Engine v25.0.0 or later, or Docker Desktop v4.26.0 or later. Run docker compose version and docker version on the host that will run the stack. Done means both report versions at or above the floor. If your host is older, upgrade the runtime first, because the inline configs block in the file will fail on older releases.

  2. Choose and pin a release tag

    Open the Qdrant GitHub releases page and select the release tag you will deploy, then write that tag into the image: line as qdrant/qdrant:<tag>. The latest release listed as of October 2026 was v1.19.2, but confirm the current tag on the day you install, because newer releases may have been published. Never use latest, since it changes under you on every pull and makes upgrades and rollbacks unpredictable. Done means the image line names one explicit tag and you have recorded the tag and its release date in your change record.

  3. Define the service with named volumes

    Write the docker-compose.yml service with two named volumes, one mounted at the storage path and one at the snapshots path, so data survives container replacement. Avoid bind-mounting a Windows folder into a WSL-backed Docker Desktop host, since that setup can lose data after a restart. Map the REST and gRPC ports only if you need them outside the host, and set a restart policy such as unless-stopped. Done means docker compose config prints the fully resolved file without errors and shows both named volumes attached to the service.

  4. Add the API key and TLS settings

    Before the port is reachable from any network, add the API key and TLS settings through an inline config or environment variables. Qdrant ships with no authentication and listens on all interfaces by default, so the key must exist before the first start. Store the key in a .env file or your secrets manager rather than in the Compose file itself, and mount the certificate and key files read-only. Confirm the exact configuration keys against the Qdrant security docs for the tag you pinned. Done means the resolved config shows the key and TLS settings and no unauthenticated port is published.

  5. Start the stack and read the logs

    Run docker compose up -d from the directory containing the file, then follow the output with docker compose logs -f qdrant. Watch for storage initialization messages, certificate load errors and permission failures on the volume paths, which usually mean the container user cannot write the mounted directory. Stop and fix any error before continuing, because a container that restarts in a loop will also fail the health check. Done means the container shows as running in docker compose ps and the logs show the service listening without repeated errors.

  6. Verify the health endpoint

    Call the health endpoint from the host with the API key in the request header, using HTTPS if you enabled TLS. Use the same address and port the Compose healthcheck targets, so the probe and your manual check agree. Add a healthcheck block to the service and confirm that docker compose ps reports the container as healthy after its start period. Done means the health request returns a success response with your key, and the Compose status reads healthy. A request without the key should be rejected, which confirms authentication is active.

  7. Create and query a test collection

    Create a small test collection through the REST API with the key, insert a few points with known vectors, and run a search that should return the nearest point first. Use a collection name that is clearly temporary, such as one prefixed with smoke-test, so it does not get mistaken for production data. Delete the collection when the check passes. Done means the create, insert and search calls all succeed, the expected point ranks first, and the collection can be removed cleanly.

  8. Confirm persistence across a restart

    Restart the stack with docker compose restart and repeat a simple read against a collection you created before the restart. Then check that the named volumes still hold the storage directory with docker volume inspect. Keep this test collection in place until the check passes, then remove it. Done means the data is present after the restart and the volume mount points match the paths in your Compose file. If the data is missing, stop and review the volume definitions before you load any real vectors.

How the Compose stack, volumes and clients connect

The diagram starts at client applications on the internal network, which send requests to the host's published port. The request crosses the trust boundary into the Qdrant container, where TLS and the API key must be checked before any collection is read or written. Qdrant writes its data to a named volume for /qdrant/storage and snapshots to a second named volume, and the healthcheck probes the service from inside the stack. Check that the port is not exposed on all interfaces and that the volumes are named, not bind-mounted from the host.

Client requests reach Qdrant through TLS and the API key, with state kept in named volumes.

Which Docker runtime to use for Qdrant storage

On a Linux host, Docker Engine runs containers directly on the host kernel and writes to local disks, so the storage path is the easiest to verify. Treat this as the reference setup for production Compose files.

  • Version floor: Inline configs content needs Docker Engine v25.0.0 or later and Docker Compose v2.23.1 or later. Check both with docker version and docker compose version before you pin the file.
  • Named volumes: Docker manages where the data sits on the host, so the vectors in /qdrant/storage survive container recreation without any path you maintain by hand.
  • Bind mounts: A bind mount maps a host directory into the container. It fits only when that directory sits on a local block device with a POSIX-compatible file system.
  • Network storage: Qdrant cannot run on NFS or S3-backed storage, so an NFS export used as a bind mount source breaks the documented requirement.

Confirm the current minimum versions and storage rules in the installation docs before you choose a mount type.

Security settings a Compose file must set before exposure

A self-deployed Qdrant instance ships open to the network with no authentication, so the Compose file has to close that gap before the service is reachable from anywhere else. The cards below cover the default state, the port binding, API keys, TLS, secret handling and audit logging, which work together as one baseline.

Start from the unsecured default

The Qdrant security docs state that self-deployed instances listen on all network interfaces and have no authentication configured by default. A Compose file copied from a quick start therefore exposes the REST and gRPC ports with full read and write access. Treat the default as a finding to remediate, and confirm the running container with a request from a host outside the intended network before you call the deployment secured.

Qdrant security docs

Bind published ports to one interface

In the ports section, publish the REST and gRPC ports on a specific address such as 127.0.0.1:6333:6333 or a private interface IP, instead of the bare 6333:6333 form that publishes on all host interfaces. Put clients that must reach Qdrant on the same internal Docker network or behind a reverse proxy. Check the result with a port scan from another machine, since Docker publishing rules can bypass host firewall rules you expect to apply.

Set admin and read-only API keys

Qdrant supports admin and read-only API keys since v1.2.0. Give applications that only query collections the read-only key and reserve the admin key for operators who create collections or manage snapshots. Keys are set through the Qdrant configuration, so confirm which setting your image version reads and verify that a request without the key is rejected after you restart the service.

Enable TLS for REST and gRPC

Qdrant supports TLS for both REST and gRPC since v1.2.0. Mount certificate and key files into the container as read-only volumes and reference their container paths in the configuration. Confirm that every client SDK and reverse proxy in your path trusts the certificate chain, and that the gRPC endpoint is covered as well as REST, because a client can use either protocol.

Keep keys out of the Compose file

Do not write API keys or TLS passwords directly under environment in docker-compose.yml, because the file is usually committed to version control and printed in logs. Load values from an .env file excluded from Git, or from Docker secrets mounted as files. Restrict the permissions on the env file to the operator account, and rotate keys when someone with access to the file leaves the team.

Turn on audit logging

Qdrant writes JSON audit logs of authenticated API operations since v1.17.0. Enable them so that collection creation, deletion and snapshot actions can be traced to a key. Forward the container log output to your central log store, and test that a deliberate delete produces a record. Without this, a change made with a valid key leaves no usable trail for an incident review.

How Compose upgrades of Qdrant are done

The documented method is simple: change the image tag for the qdrant service in docker-compose.yml to the target version, then restart that service with docker compose up -d. Qdrant's upgrade guidance describes this image change and restart as the upgrade step under Compose, so the work is in the preparation around it. Before you edit the file, read the release notes for every minor version between your current release and the target, because a change in one minor version can affect the next. The current release line is v1.19.x, with v1.19.2 the latest release listed on GitHub as of October 2026, but confirm the target and the path to it against the Qdrant upgrades documentation before you start.

Take a snapshot before you change the tag. Collection snapshots are tar archives of one collection, and a full-storage snapshot is available on single-node deployments, which is the setup this page covers. Keep the snapshot outside the Compose volume so that a failed upgrade does not take the backup with it. Note the restore limit: a snapshot restores only to a cluster on the same minor version or the next minor version. If the upgrade fails and you roll back to the old image, a snapshot taken on the new version may not restore to the old one, so keep the pre-upgrade snapshot and confirm the restore path in the Qdrant snapshots documentation before you rely on it.

If you cross several minor versions, move through them in steps rather than changing the tag once. Upgrade to the next minor version, start the service, check that collections load and that your client applications can query them, then repeat for the following minor version. Keep the image tag pinned to an explicit version after each step so that a restart never pulls a different build. Ask your team to record each step, the snapshot name and the time of each restart, because that record is what you need if a later step needs to be reversed.

Limits of a single-node Compose setup to confirm

A single Compose service is simple to run, but it inherits the storage, availability and upgrade limits of one host. Before you commit to this setup, confirm each of the items below in your own environment, because the answers decide whether Compose is still the right fit as data and uptime requirements grow.

Storage must be block-level

Qdrant needs block-level storage with a POSIX-compatible file system and cannot run on NFS or S3 object storage. Check the file system and mount type behind the host path or named volume that backs /qdrant/storage, and prefer SSD or NVMe for disk-backed data. A network share that looks like a normal directory can still fail this requirement, so verify it with the storage team rather than assuming.

Qdrant installation docs

One service is not high availability

A single Compose service on one host has no failover. If the host, its disk or the Docker daemon fails, search stops until someone restores service. Decide with the business owner how much downtime is acceptable, and document who restarts the service and where backups are kept. Clustering needs a separate design, not a bigger Compose file.

Distributed mode needs three nodes

The distributed deployment docs recommend at least three nodes for production clusters so quorum survives a node failure. Moving from one Compose service to a cluster therefore means provisioning and operating several hosts, plus shard and replica planning. Confirm that the team and budget for that extra infrastructure exist before you design around a single node.

Distributed deployment docs

Compose has no zero-downtime upgrade

Compose restarts the service when you change the image tag, so searches and writes fail during the restart. Plan a maintenance window, take a snapshot before each change, and test the new version in a staging copy first. Zero-downtime upgrades require a cluster design or a different tooling choice, which you should confirm before promising uptime to users.

Host resource and file limits

Set memory and CPU limits in the Compose file, and raise the open file limit on the host so Qdrant can open its segment files under load. Confirm that the host has enough RAM for the collections you plan to store, since an undersized host fails under indexing as well as query load. Record the values you chose so a reviewer can trace them.

Compose and Engine version floors

Inline configs content needs Docker Compose v2.23.1 or later, Docker Engine v25.0.0 or later, or Docker Desktop v4.26.0 or later. Run docker compose version and docker version on the target host before you write the file, because an older host will reject the configuration. Confirm the versions in your change record so the next engineer can reproduce the setup.

Qdrant installation docs

Questions teams ask before running Qdrant in Compose

Does running Qdrant in Docker Compose add a software license cost?

The Qdrant engine is licensed under Apache-2.0 and is free to self-host, so the license line is zero. The real cost is in three places: your staff time to build, test and operate the host, the infrastructure the host runs on (compute, block storage, backups and monitoring), and any outside help you buy. Staff time recurs because someone must apply image upgrades, rotate API keys and watch disk use. Ask any implementation partner for a quote built from a written scope that lists each of these items separately, so you can see which costs are one-time and which recur.

How long does a single-node Qdrant Compose setup take to finish?

The sources for this page do not publish a fixed duration, so treat any figure you hear with caution. The time depends on how ready your host already is, how many environments you need (for example, a test and a production stack), whether TLS and API keys are configured from the start, how much data you migrate, and how much testing you require before go-live. A team with a prepared Linux host, existing secrets tooling and a clear list of clients can move quickly. Ask for a timeline in the written scope, with the assumptions and your responsibilities listed beside each milestone.

What must our team provide before a Compose deployment starts?

Your team needs to supply several things before work begins:

  • A Linux host with Docker Engine v25.0.0 or later, or Docker Desktop v4.26.0 or later, plus Docker Compose v2.23.1 or later, because inline configs need those versions.
  • Local block storage with a POSIX-compatible file system. Qdrant cannot use NFS or S3-style object storage for its data, and SSD or NVMe drives are recommended.
  • DNS names, firewall rules and load balancer or reverse proxy settings for the ports clients use.
  • A named owner for API keys, TLS certificates and the secrets store that holds them.
  • Backup targets and a retention decision.

Having these ready shortens the build and keeps the scope from changing mid-project.

Can our internal team run Qdrant in Compose without outside help?

Yes, a team with Linux administration, Docker and Compose experience can deploy a single node alone, using the official installation guidance. The harder parts are usually the ones outside the container: choosing storage that meets Qdrant's block-storage rule, enforcing API keys and TLS, locking down network exposure, and proving that snapshots can be restored. Qdrant ships without authentication and listens on all interfaces by default, so the first deployment must change those settings before any client connects. If your team lacks time or hardening experience, a fixed-scope engagement can cover the build, hardening and handover in writing, while your staff keep ownership of operations.

When should we move from Compose to Kubernetes, the Helm chart or Private Cloud?

Move when a single host no longer meets your availability, scale or upgrade needs. Qdrant recommends at least three nodes for a production cluster so quorum survives a node failure, which is the first signal to look beyond one Compose host. Qdrant documents three production paths: the managed Qdrant Cloud, a community-supported Helm chart and an enterprise Kubernetes operator offered with Qdrant Private Cloud. The Helm chart does not include zero-downtime upgrades or automatic shard rebalancing, which are enterprise features. Compare these gaps against your upgrade window and your team's Kubernetes skills before choosing a path, and review the installation documentation for the current options.

Is Qdrant Cloud an option if we do not want to run the host ourselves?

Yes. Qdrant Cloud is the managed option, and it has a free single-node tier plus paid tiers priced on usage or by minimum spend. Check the Qdrant pricing page for current tier terms, uptime commitments and which features each plan includes, such as SSO and private VPC links on the top tier. Qdrant Hybrid Cloud is a separate option that runs managed clusters on infrastructure you control, and both paid options are priced through Qdrant sales. Choose managed hosting if data location, network control and patching ownership suit your organization. Choose self-hosting if you need the data to stay inside systems your team controls.

Is a default Qdrant Compose file safe to run in production?

No. According to Qdrant's security documentation, self-deployed instances are not secure by default: they listen on all network interfaces and have no authentication configured. A Compose file copied from a quick start will expose the API unless you add an admin API key, a read-only key where clients only search, TLS for REST and gRPC, and firewall rules that limit access to known networks. Qdrant also supports JWT-based access control with per-collection permissions and JSON audit logging of authenticated operations in newer releases. Review the security documentation and confirm which controls your release supports before you expose the port.

How DeployOpen scopes and delivers a Qdrant Compose deployment

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure. For Qdrant with Docker Compose, we start from a written scope covering the host, the Compose file, access controls and the upgrade procedure, so your team knows what is delivered before work begins.

How we scope

  • Confirm the host, operating system, Docker Engine and Compose versions, and whether the stack runs on one node or a small setup.
  • Agree the storage layout, named volumes, backup location and the pinned Qdrant image tag in writing before build starts.
  • Record access requirements, API key and TLS ownership, and the network paths your applications and embedding services need.

How we build

  • Write the Compose file with a pinned image, inline configuration, healthcheck, restart policy and resource limits.
  • Configure API keys, TLS and network exposure so the instance does not run with the default unauthenticated settings.
  • Test startup, restart, data persistence after container recreation and a sample snapshot before handing the stack over.

How we hand over

  • Deliver the Compose file, environment template, runbook and a step-by-step upgrade procedure for your own change process.
  • Document the Docker Engine and Compose version requirements for inline configs and the checks your operators should run.
  • Walk your platform and security teams through access controls, backup steps and the evidence needed for internal reviews.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts and a quote following from that scope.
  • Ongoing support, version upgrades and continuous testing are available as a retainer if your team wants DeployOpen to keep operating the stack.
  • Confirm with DeployOpen during scoping which upgrade, monitoring and backup tasks sit with your team and which sit under the retainer.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.