composebuilder

About ComposeBuilder

ComposeBuilder is a free tool for writing docker-compose.yml and .env files, and a library of 38 Docker Compose stacks you can copy, read line by line and adapt.

Why it exists

Most compose files start as a copy of something found online: an old tutorial with version: '3', an image taggedlatest, a database password written straight into the file and port 5432 open to the internet. They work on the first day and cause trouble later. ComposeBuilder tries to make the safer version the easy one: pinned image tags, secrets in .env, named volumes for data, healthchecks the other services can wait for, and private ports bound to 127.0.0.1.

How the builder works

The builder is a static page. The YAML is generated, highlighted and checked by JavaScript in your browser, and passwords come from your browser’s cryptographic random number generator. Your design is saved in local storage on your device so you can close the tab and come back. Share links put the design after the # in the URL, which browsers do not send to servers, and leave password values out.

The checks catch the mistakes that most often stop docker compose up or make a stack unsafe: two services publishing the same host port, depends_on pointing at a service that does not exist or has no healthcheck, variables used in the file but missing from .env, unpinned images and databases reachable from the network. They do not replacedocker compose config, which you should still run before deploying.

How the stacks are written

Each stack page follows the same structure: when to use it and when not to, the complete compose file, the .env it needs, commands to start and verify it, a production checklist, common problems with their causes and fixes, and variations. Images are official or maintained by the upstream project and pinned to a version. Every page shows the date it was last reviewed. Image versions move on, so check the release notes of each project before upgrading a running stack.

What it is not

ComposeBuilder is not affiliated with Docker, Inc. or with the projects whose images appear in the stacks. It is not a hosting service and never connects to your servers.

Feedback

Found an error in a stack, or a check that misfired? See the contact page.