Docker Compose builder
Build a Docker Compose file with a form for services, ports, volumes, environment variables and networks.
Services
Required unless a build context or dockerfile is set. Image and build may be used together.
One per line. A single container port is also allowed.
Optional container ports, one per line.
One short-syntax mount per line. Undeclared named volumes are declared automatically.
Environment
No environment variables.
Emitted as a string. Imported lists are shell-joined; quoting is best-effort.
Emitted as a string. Imported lists are shell-joined; quoting is best-effort.
Depends on
Add another service to declare dependencies.
A mapping for other Compose keys. Keys managed by the form cannot be repeated here.
Project
Declared volumes
No declared volumes.
Declared networks
No declared networks.
Advanced top-level keys such as secrets and configs. Do not repeat name, services, volumes or networks.
Import compose.yaml
Single-document YAML only. Import replaces the form only after the whole file validates.
Command and entrypoint lists are shell-joined on import; quoting is best-effort. Unrecognized keys are kept in the additional YAML fields.
Compose interpolates $VARIABLE; use $$ for a literal dollar sign. This file is generated locally in your browser.