Docker Compose Builder
Build a docker-compose.yml from ready service templates (PostgreSQL, MySQL, Redis, MongoDB, Nginx and more), or paste a file to check it. Private.
Services
docker-compose.yml
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Next steps
Done here? Use the Send to… menu on the result to carry it on to YAML ↔ JSON Converter or Kubernetes YAML Validator.
Free Online Docker Compose Generator and Validator
Pick the services you need, such as a database and a cache, and get a working docker-compose.yml. Or paste an existing file and see what is wrong with it. It gives developers a quick browser-based way to solve a focused docker compose builder task before moving the result into a project.
How to build a compose file
Tick the services, change the host ports if they clash with something on your computer, and copy or download the file. Save it as docker-compose.yml and run docker compose up.
How to check a file
Choose Check a file, paste your file and press Check. Each finding names the service and setting.
Common mistakes
- Publishing a database port on every network interface: bind it to 127.0.0.1 if only your machine needs it.
- Leaving the sample passwords in place when the file goes to a server.