# Compose Bin

Compose Bin is the binary-only Docker Compose CLI plugin that lets Docker users define and run multi-container applications using compose files. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/6657/compose-bin

## Description

Compose Bin is the binary-only Docker Compose CLI plugin that lets Docker users define and run multi-container applications using compose files.

## Platform availability

Available on 0 of 10 platforms.

## Health score

80/100 (Excellent), based on 3 of 4 factors.
- Maintained: 100 (last commit 17 days ago)
- Popular: 92 (38,597 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)

## Links

- Docker Hub: https://hub.docker.com/r/docker/compose-bin
- GitHub: https://github.com/docker/compose
- Official website: https://docs.docker.com/compose/

## Common questions

### Where should I place the Compose CLI binary on Linux?

Rename the binary to docker-compose and copy it to $HOME/.docker/cli-plugins for a user install. For a system-wide install, put it in /usr/local/lib/docker/cli-plugins, /usr/local/libexec/docker/cli-plugins, /usr/lib/docker/cli-plugins, or /usr/libexec/docker/cli-plugins. You may need to make the file executable.

### How do I run a one-time setup command for a service without editing a running container?

Use docker compose run <service> <command>. It runs the command in a new container with the same service settings, so you do not have to edit files directly inside a running container.

### Why won’t my app be reachable if I publish ports?

Ports in compose.yaml use host:container format, where the left number is on your machine and the right number is inside the container. If the host port does not match the port you access, opening it in a browser or from another device won’t work.

### What should I include in compose.yaml to keep application data outside containers?

Create or edit compose.yaml to list each service and the folders to keep outside the container. If you forget a volume, data can disappear when containers are rebuilt.

### What benefit do some self-hosters get from keeping many containers in one compose file?

One self-hosted setup reports faster startup, upgrade, and shutdown because docker compose performs operations within a single compose file concurrently rather than sequentially.

---
Source: Our Local Host (https://ourlocalhost.com/app/6657/compose-bin), the self-hosted and open-source app directory.
