Docker Compose Generator
Free online Docker Compose generator, preset common services
About Docker Compose Generator
A visual composer that builds a version 3.8 docker-compose.yml file from per-service form fields. You add services from six framework presets (nginx, node, mysql, postgres, redis, mongodb) or build any custom image, edit the name/image/ports/environment values inline, and the generator emits the services and volumes blocks with quoted ports and Docker-style environment list entries.
How to Use
1. Click a preset button (nginx, node, mysql, postgres, redis, mongodb) under Add Service to drop in a pre-filled service card. 2. On each card, edit Service Name, Image (image:tag), Ports (one per line, e.g. 80:80), and Environment (one KEY=value per line). 3. Remove a card with the red Remove button on its header. 4. Click Generate Compose to render the YAML in the docker-compose.yml panel; use Copy to send it to the clipboard.
Generated YAML Structure
Output always starts with version: '3.8' and a services: block. Each service emits image, ports (quoted), environment (raw KEY=value lines), volumes, and depends_on (comma-separated). Named volumes are auto-collected: any volume entry that is not a bind mount (does not start with ./ or /) is appended to a top-level volumes: block. Bind mounts like ./html:/usr/share/nginx/html stay inline only.
▶Why are my ports quoted in the output?
▶How do depends_on entries get added?
▶Does the tool emit a networks block?
▶Is my data sent to a server?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee