docker-compose Generator
Compose multi-service stacks visually.
Service definition
docker-compose.yml
version: "3.9"
services:
web:
image: nginx:alpine
ports:
- "8080:80"
environment:
NODE_ENV: "production"
PORT: "80"
volumes:
- ./html:/usr/share/nginx/html
depends_on:
- db
About this tool
Define one or more services with images, ports, volumes, and env vars, and generate a valid docker-compose.yml.
How to use
- Add services and set the image, ports, and volumes for each.
- Add environment variables as needed.
- Copy the generated docker-compose.yml.
Examples
Service
web:
image: nginx
ports:
- '80:80'Frequently asked questions
A modern Compose Specification file (no obsolete version key required).