mrkeyoor.comAsk

docker/composetested 25 Nov 2026commit ac74e4f

compose review

Use Docker Compose to share a Docker application's service configuration for development, CI or a deliberately managed single host.

  • Install failed
  • Build 65 s
37/37tests passed
  • 361 packages
Dev Toolsevaluationupdated 25 Nov 2026
+27stars / 7d

Docker Compose defines a Docker application's services in a shared YAML file and starts them with docker compose up. Developers can keep the service configuration beside their application code instead of sharing a sequence of container commands.

Verdict

Use Docker Compose to share a Docker application's service configuration for development, CI or a deliberately managed single host. Choose another system when workload placement across multiple hosts is the requirement. Our source run at ac74e4f installed in 61 seconds, built in 65 seconds and passed all 37 reported checks in 43 seconds. For CI and single-host use, make database readiness, writable-file ownership, project identity and data removal explicit parts of the configuration and runbook.

Compose infographic: share and run Docker applications from a YAML file, plus our test result and who it suits
Tested 25 November 2026: go install failed after 13 s. Before that: source install 61 s, build 65 s; 37 of 37 source tests passed.

We ran it

Lab card: what happened when we ran compose
Lab card from our sandbox run
Screenshot of compose (docs.docker.com/compose)
docs.docker.com/compose
Install✓ · 61s361 packages
Build✓ · 65s
Tests✓ · 43s37 passed · 0 failed of 37 (go test)
Repo1034 files~104,432 lines of source · 4.3 MB · 11 CI workflows · Dockerfile

Answers from our run

Does compose build from source?

Dependencies installed in 61 seconds (361 packages), and the build succeeded in 65 seconds. We cloned commit ac74e4f into a clean Debian container with 3 CPUs and no project-specific setup.

Do compose's tests pass?

Yes. The project's own test command finished in 43 seconds and reported 37 passed, 0 failed (go test).

Who should not use compose?

Teams requiring workload placement across multiple hosts: Docker documents Compose's production role as single-host deployment.

What are the alternatives to compose?

Podman Compose, Kubernetes. Use Docker Compose to share a Docker application's service configuration for development, CI or a deliberately managed single host.

Setup2/5In our 2026-11-25 run “go install github.com/docker/compose/v5/...@latest” failed with “go: github.com/docker/compose/v5/...@latest (in github.com/docker/com…”, though our source checkout installed in 61 s and built in 65 s.Editor’s note: The source installation succeeded and a separate go install command failed; packaged-plugin installation with an application was not assessed.
Docs4/5The README has an install section (“Quick Start”) and usage in the same section; we did not run its quickstart ourselves.Editor’s note: The README supplies plugin installation routes and a configuration example; the introduction overstates teardown before explaining volume persistence. Overall documentation coverage was not scored.
Community5/5Last push on 2026-11-25, 39,034 stars and maintainers answered or closed 10 of the 10 most-discussed issues we sampled.Editor’s note: Named developers and maintainers discuss concrete workflows, but these historical extracts do not measure present support responsiveness.
Maturity5/5Latest release v5.8.0 on 2026-11-17, repository created 2013-12-09 and its test suite passed in our sandbox (37 of 37 passed).Editor’s note: The source run passed 37 reported checks; production recovery, sustained application operation and release-tag execution were not assessed.

How we score

Discussed on

  1. hnDocker Compose reads your “.env” without opt-out160 points
  2. hnCompose Spec Updated with <models> for AI Workloads16 points
  3. hnDocker Compose (aka fig) Released15 points
  4. hnCompose on Kubernetes: Deploy Docker Compose Files onto a Kubernetes Cluster5 points
  5. hnDocker Compose: `version` is obsolete4 points

Who it’s for

Developers sharing Docker applications with database, cache or web services.
Teams keeping service configuration in version control for development and CI.
Single-host operators who can specify readiness, persistence, output ownership and cleanup.

Who it’s NOT for

Teams requiring workload placement across multiple hosts: Docker documents Compose's production role as single-host deployment.
CI teams whose cleanup process cannot remove files written by their containers: issue #5523 describes that failure.
Swarm users assuming every current Compose feature transfers unchanged: the README warns that Swarm misses newer enhancements.

Setup reality

Our November 25, 2026 source run at ac74e4f installed successfully in 61 seconds with 361 dependencies recorded, built in 65 seconds and passed all 37 reported checks in 43 seconds. Its recorded configuration was 3 CPUs, 8 GB RAM and image golang:1.24-bookworm.

The README documents Docker Desktop and Linux binary-plugin installation routes. Running an application also requires an accessible Docker Engine and a service configuration. Published ports, application credentials and writable storage are choices for that application.

A separate command-level run at ac74e4fdf096 used a fresh unprivileged container with 2 CPUs and 4 GB RAM. Its go install attempt failed in 13.3 seconds with exit 1; the recorded failure names module exclude directives. This was a different installation procedure from the successful source run.

Short answer: share the stack, own its operating rules

Use Docker Compose to share a Docker application's service configuration for development, CI or a deliberately managed single host; choose another system when workload placement across multiple hosts is the requirement. Docker describes Compose's production role as single-host deployment. Our source run passed all 37 reported checks, with installation taking 61 seconds and the build 65 seconds. The adoption decision also includes who defines the stack's readiness, storage and cleanup rules.

Docker Compose records an application's containers and configuration in a YAML file. The Docker Compose README illustrates a web service and Redis, then starts the application with docker compose up. Keeping that file beside the application code gives another developer a service definition they can inspect. Its published ports and mounted directories are visible configuration choices, rather than details hidden in someone's shell history.

What people use compose for

Developers describe using Compose for Magento tooling, Go websites and GitLab CI workspaces in the issue tracker. Those accounts connect the shared configuration to specific work: running a webstore, developing against a database and collecting files from containers. They also show why the default startup command and the ownership of generated files belong in the adoption decision. Each account below identifies the developer and the reported outcome.

Who used it What they ran What happened
kojiromike and their team A LAMP webstore for Magento extension development, plus development tools Compose made the webstore easy to run, but ordinary startup also triggered tools they wanted separately. Magento workflow in issue #1896.
metal3d A website using Go, MongoDB and nginx Logs became troublesome after five days, with more output added on restarts. Website workflow in issue #1083.
nrdmn Containers launched from GitLab CI, writing into the repository directory Failed or cancelled jobs could leave files that gitlab-runner lacked permission to delete. CI workflow in issue #5523.
dkinzer A container development workflow used on macOS and CentOS Root-owned files written through mounted directories caused trouble on CentOS. Development workflow in issue #5523.

The Magento account exposes a useful configuration choice. A web server stays running; a lint command runs and exits. kojiromike wanted both discoverable in one file, but an unqualified startup also launched commands they wanted on demand. A shared definition helps developers find the tools, while the default startup path determines what happens when they bring up the application. Those are separate decisions even when the services live in the same repository.

What happened when we ran it

Our November 25, 2026 source run installed Compose in 61 seconds, built it in 65 seconds and completed tests in 43 seconds, according to our sandbox measurements. The Go summary reported 37 passed and zero failed out of 37 at commit ac74e4f. The recorded sandbox configuration was 3 CPUs, 8 GB RAM and image label golang:1.24-bookworm. These timings describe installation, compilation and checks of the Compose repository.

Stage in our source run Recorded result
Install Succeeded in 61 seconds; 361 dependencies recorded
Build Succeeded in 65 seconds
Tests Succeeded in 43 seconds; 37 passed, 0 failed of 37
Checkout 1,034 files, approximately 104,432 source lines, 4.3 MB
Repository signals 11 CI workflow files, a Dockerfile, no directory named tests

The directory scan found no directory named tests, while the executed Go checks passed. Those results describe different things: one checks a repository layout convention, and the other records the test command's outcome. The dependency count and checkout size likewise describe the source setup. They are useful contributor information, while the README's packaged plugin routes address the different task of installing Compose to run an application.

A separate command-level run recorded commit ac74e4fdf096, a fresh unprivileged golang:1.24-bookworm container, 2 CPUs, 4 GB RAM, no published ports and no secrets. Its recipe was quickstart-cli; the clone step took 1 second. The installation step failed in 13.3 seconds with exit 1 after running go install github.com/docker/compose/v5/...@latest.

That installation log names v5.8.0 and says it requires Go 1.26.11 or later. The recorded failure identifies exclude directives in go.mod, which Go rejects for that installation mode because they could change module interpretation outside the main module. The teardown record says "ok". This failed command and the successful source run used different procedures; the installation FAQ describes the README's user-facing route.

Where people get stuck: readiness, naming and tool containers

A dependent service needs a database readiness check, rather than container startup alone. Docker's multi-container walkthrough explains that distinction through a healthcheck and depends_on: condition: service_healthy. In issue #374, the author used Fig, Compose's predecessor, to start Alfresco and MySQL. MySQL needed time to import data, and Alfresco failed while attempting to connect before MySQL was listening. The same discussion includes a Django/Postgres startup problem.

Problem reported Response shown by the source Operating decision
Alfresco reached MySQL before it was listening, #374 Historical users wrapped entrypoints in readiness scripts; Docker's walkthrough documents a healthcheck and service_healthy Define a readiness probe for the database.
A forgotten project-name override could create another instance, #745 The discussion documents -p/--project-name and COMPOSE_PROJECT_NAME Use a consistent project identity for startup and cleanup.
Developer tools started with ordinary services, #1896 dnephin recommended separate configuration added with -f Give optional commands a deliberate invocation path.
An Engine connection failed, #4181 shin- requested Engine debug logs and identified several possible causes Diagnose the recorded connection error before selecting a remedy.

The proposal in issue #745 describes forgotten overrides creating another instance or replacing another project's containers. It documents -p/--project-name and COMPOSE_PROJECT_NAME as ways to override identity. For automation, the same identity needs to accompany commands that create and remove resources. The historical recommendation in issue #1896 addresses a different default: put admin services in separate configuration and add it with -f when needed.

Where it hurts: host files and long-running logs

Container-written files can prevent CI cleanup when the runner lacks permission to delete them. nrdmn reports exactly that consequence after failed or cancelled jobs in issue #5523. A bind mount exposes a host directory inside a container, so the resulting ownership affects the next host process using those files. In the same discussion, dkinzer describes root-owned output causing trouble when moving a development workflow from macOS to CentOS.

The file-copy discussion also contains an alternative. Maintainer shin- recommends including required files in the Dockerfile and rebuilding when they change, because a copy into a running container must be repeated after recreation. dkinzer proposes Dockerfile COPY and different Compose files, one using a mount. Both approaches appear in issue #5523: image contents suit files delivered with the application, while a development mount lets the host remain the editing location.

Host storage can affect lifecycle operations as well. In issue #3927, jcberthon reports that stalled communication between Windows Server and a Linux host blocked startup or shutdown of containers using host-mounted SMB shares. The discussion also describes resource increases, longer historical timeouts and excluding large static directories from mounts. For logs, issue #1083 records metal3d's five-day accumulation problem and discussion of limiting returned lines, logging drivers and rotation work.

Security starts with the ports and files you expose

Docker's application walkthrough publishes the application's port while keeping MySQL reachable inside the container network. That documented network arrangement gives a concrete starting point for reading a Compose file: distinguish a service that needs host access from a database reached by another container. In this example, the app finds MySQL by its container name, passed through MYSQL_HOST, and the database uses a volume so its files outlive the container.

Writable mounts deserve the same attention as published ports. The CI ownership failure in issue #5523 shows why: a container's output became the runner's cleanup problem. Before adopting a copied configuration on a shared host, identify which host directories each service can write and which account removes the resulting files. This follows directly from the reported permissions failure and gives the configuration review a specific question to answer.

Docker Compose vs docker run, Podman Compose and Kubernetes

Docker Compose shares service configuration in YAML, Podman Compose directly executes Podman, and Kubernetes manages applications across multiple hosts. Those documented operating models provide a clearer choice than comparing the length of their startup commands. Docker's Compose introduction describes the manual alternative as multiple docker run commands, with networks, flags and cleanup to coordinate. Choose according to the environment your team needs to manage.

Choice Documented reason to choose it Configuration responsibility
Docker Compose Share a Docker application's service definition in YAML Specify readiness, storage and project identity.
Multiple docker run commands Start and configure containers individually Coordinate networks, repeated flags and cleanup.
Podman Compose Directly execute Podman with a rootless, daemonless focus Follow its Podman and network-backend requirements.
Kubernetes Manage containerized applications across multiple hosts Operate the cluster needed for that model.
Dockerfile COPY plus rebuilding Include required application files in the image, as recommended in #5523 Rebuild when those files change.
Separate Compose configuration for admin tools Add optional services with -f, as recommended in #1896 Document how developers invoke the optional commands.

Podman Compose directly executes Podman without a running daemon, according to the Podman Compose README. Kubernetes manages containerized applications across multiple hosts, according to the Kubernetes README. These are distinct selection criteria: one concerns the container process model, and the other concerns managing applications across machines. The comparison table also separates those platform choices from changes a team can make within its existing Docker workflow.

A historical integration incident appears in Podman issue #19930, opened September 11, 2023. p-fruck reports that upgrading to Podman 4.6.2 stopped Compose from launching containers while podman run still worked. The associated error includes oom_score_adj: Permission denied. The discussion records unsuccessful migration, reset and storage-deletion attempts, followed by investigation. Native Podman execution and Compose integration were different paths in that report.

What the docs get wrong: down leaves volumes behind

Docker's introduction overstates cleanup when it describes docker compose down as removing everything. Its own volume-persistence note says volumes remain by default and require --volumes for removal. The example output removes containers and a network; the separate volume-removal example uses the additional flag. A shutdown instruction should therefore say whether it preserves stored data, rather than using "everything" to describe both operations.

That distinction belongs in the cleanup runbook. Ordinary docker compose down preserves volumes for a later start, while docker compose down --volumes requests their removal as well. A developer resetting disposable tutorial data and an operator stopping a database have different intentions even if both are tearing down containers. Docker's persistence note supplies the concrete distinction needed to write those two instructions accurately.

Scheduled jobs in v5.8.0 have an Engine requirement

Docker Compose v5.8.0 supports scheduled jobs with Docker Engine 29.10 or later and the jobs extension enabled. The v5.8.0 release notes, dated November 17, 2026, say the extension is off by default. They describe a job as a one-shot unit of work declared under the top-level jobs element, run on demand or on a schedule. This corrects the older page's statement that scheduled jobs were absent.

The same release notes say docker compose up or create registers scheduled jobs with the Engine, while docker compose down removes them. An Engine without jobs support refuses a project containing scheduled jobs before creating anything. Manual jobs keep working on any Engine, with a fallback and warning described for Engines without jobs support. A scheduling decision therefore depends on both the Compose release and the Engine configuration.

Docker Compose is the container tool, not the similarly named products

Docker Compose runs Docker applications; Jetpack Compose builds native Android interfaces, and Compose Software's product concerns web experimentation. The Docker Compose README, Android tutorial and iTechGuides product review describe those separate entities. An Android UI comparison or a web-experimentation product assessment answers a different adoption question. For this review, the relevant identity is the docker/compose repository and its Docker application workflow.

FAQ

Docker Desktop includes Docker Compose for Windows and macOS, and the README gives Linux users a release-binary plugin route. The current README uses docker compose, with a space, and places Python Compose on the legacy v1 branch. Historical discussions below also use docker-compose or Fig. Keeping those command generations distinct helps connect each answer to the installation or environment its source actually describes.

How do I install Docker Compose?

Use Docker Desktop on Windows or macOS; on Linux, download the relevant release binary and install it as a Docker CLI plugin. The README's Linux instructions say to rename it docker-compose and copy it to $HOME/.docker/cli-plugins, or a listed system-wide plugin directory. They also note that the file may need executable permission with chmod +x. Docker's application walkthrough requires Docker Desktop or Docker Engine with the Compose plugin.

How do I run an application with Docker Compose?

Define the application's services in compose.yaml, then run docker compose up. The README quick start also includes a Dockerfile for the application environment. Its configuration example builds a web service from the current directory, publishes 5000:5000, mounts the current directory at /code and adds a Redis image. Those settings describe the README example; adapt the service definitions to the application you are running.

How do I update Docker Compose?

The README directs Linux users to release binaries installed as Docker CLI plugins. Its installation instructions identify the binary's name and plugin location. The target release's requirements also matter: v5.8.0 scheduling requires Docker Engine 29.10 or later with the jobs extension enabled. Replacing the Compose binary alone does not enable that Engine extension. Keep the installation route and the feature's Engine requirement together in the update instructions.

Why is my Docker Compose command not found?

The README expects the Linux binary in a Docker CLI plugin directory and uses the invocation docker compose. Its installation instructions also mention executable permission. Those are concrete installation details to inspect when the command is missing. The historical Python executable uses a different invocation, docker-compose, so an old command copied from an issue thread may refer to a different installation generation.

How do I wait for MySQL or Postgres to be ready before starting dependent services?

Docker's walkthrough uses a database healthcheck with depends_on: condition: service_healthy to wait for readiness. Its MySQL explanation distinguishes container startup from accepting connections. The historical Alfresco/MySQL and Django/Postgres reports in issue #374 show the corresponding failure: the dependent application reached the database too early. The healthcheck needs to represent readiness for the selected database rather than merely the existence of its container.

How do I keep maintenance and test containers from starting by default?

dnephin's historical recommendation is to define admin services in separate configuration and add it with -f for the relevant command. The discussion in issue #1896 also explains why developers valued finding the whole workflow in one file. Separating optional commands changes that discovery path, so the command developers use to run tests or maintenance should appear beside the ordinary startup instructions.

How do I keep project names predictable and avoid container-name collisions?

The project-name discussion in issue #745 documents -p/--project-name and COMPOSE_PROJECT_NAME overrides. Its proposal warns that forgetting an override can create another instance under a different name or replace another project's containers. For scripts, carry the selected identity through both startup and cleanup commands. The report connects naming to resource selection on shared hosts, rather than treating it as a cosmetic label.

How do I release a port that prevents Compose from starting a container?

The historical port-binding discussion in issue #3277 includes both unavailable-address and already-allocated-port errors. elghazal-a reports replacing 172.17.0.1:53:8600/udp with 53:8600/udp successfully; another commenter reports switching back to VirtualBox. Removing the explicit host address changes the requested binding. The two comments describe changes to different environments, so their useful detail is the original binding and the change each person made.

How do I find the bridge IP address when a port binding fails?

Issue #3277 records a successful binding change before the commenter asks how to discover the bridge IP. In that port-binding discussion, the commenter removed an explicit address from a UDP mapping. The demonstrated result is therefore a change from 172.17.0.1:53:8600/udp to 53:8600/udp. Those values describe the reported Docker for Mac configuration and distinguish the successful edit from the subsequent address-discovery question.

Why can't Compose connect to the Docker daemon, and what troubleshooting steps should I follow?

Maintainer shin- requests Engine debug logs in issue #4181 and names network configuration and an Engine that crashed or stopped among possible causes. The discussion includes users whose other Docker commands worked and a commenter who reports success after restarting Docker. Preserve the exact failing command and connection error when collecting logs: those details distinguish the reported failures more usefully than treating a restart as their shared diagnosis.

How can I use NVIDIA GPUs with Docker Compose?

Issue #6691 discusses Docker 19.03-era NVIDIA runtime configuration. The historical GPU request describes configuring an NVIDIA runtime in daemon.json and using runtime: nvidia, or selecting NVIDIA as the default runtime. One setup received a success report. These details identify the runtime-based workaround discussed in that thread and the Docker generation behind the original request for Compose support for --gpus.

How do I fix certificate verification errors without installing Compose into system Python?

Commenters in the historical certificate discussion in issue #890 report using a virtual environment or a binary distribution. Other reports concern Homebrew, Boot2Docker and OpenSSL installation. The current README places Python Compose on the legacy v1 branch and documents binary-plugin installation for the current project. That installation distinction gives a new user a concrete choice before applying a system-Python workaround from the older discussion.

What we have not tested yet

The 37 passing checks cover our source run at ac74e4f; they are not an application deployment, container-startup benchmark or production recovery result. Application latency, sustained load, memory use, backup restoration and a security audit remain outside this run. The image label records the requested environment rather than the actual Go or operating-system version. The source checkout is also distinct from the v5.8.0 release tag discussed for scheduling.

The separate command attempt supports the 13.3-second installation failure and exclude-directive message, but its truncated toolchain-switch output leaves the completed toolchain selection unresolved. The packaged-plugin installation route, scheduled jobs and a representative database-backed application were not exercised here. The next practical application check is a cold start followed by normal file writes, cancellation and cleanup under the CI runner's actual permissions, including recovery after a later database failure.

Historical issue closure supplies no dated fix matrix. Current GPU support, certificate behavior, rootless Podman compatibility, copy-command availability, a clear-history command and a shipped persistent-name mechanism require version-specific evidence. The bridge-address discussion contains no confirmed discovery procedure, and the Podman incident contains no confirmed remedy. Podman Compose and Kubernetes were compared through their documented operating models rather than comparative runs. Video extracts were empty, unrelated Reddit and X results added no Docker Compose usage evidence, and Docker identifies its tutorial terminals as simulations.

Alternatives

ProjectWhat it isPick it when
Podman ComposeA Compose implementation that directly executes Podman, with a rootless and daemonless focus.Choose it when directly executing Podman without a running daemon is a requirement.
Kubernetes gh↗A system for managing containerized applications across multiple hosts.Choose it when managing applications across multiple hosts is the requirement and your team can operate a cluster.

What people are saying

  1. [github-trending] docker/compose

Sources

  1. Docker Compose README
  2. Docker Compose v5.8.0 release
  3. Docker Compose single-host uses
  4. Docker multi-container walkthrough
  5. Readiness discussion
  6. CI files and ownership
  7. Podman Compose README
  8. Kubernetes README

More dev tools reviews