Pick services, set ports/volumes/environment, and export a ready docker-compose.yml. Includes smart service recommendations.
Need more than a template?
I set up CI/CD, Kubernetes and cloud platforms that keep releases routine.
DevOps engineering →Choose the services your project needs and the tool writes a docker-compose.yml with images, ports, volumes and environment variables filled in. There are 21 services to pick from, from PostgreSQL, MySQL, MongoDB and Redis to Kafka, Grafana, Prometheus and Traefik. Every field can be edited before you copy or download the file.
services:
postgres:
image: postgres:16
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: app
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
redis:
image: redis:7
ports:
- '6379:6379'
volumes:
- redis_data:/data
command: redis-server --appendonly yes
volumes:
postgres_data: null
redis_data: nullThis is the tool's own output for those two services, untouched.
The defaults, such as POSTGRES_PASSWORD: postgres, are there to get you running locally. Change them before the file goes near a shared or public machine.
'5432:5432' exposes the port on all network interfaces of the host. For local work bind it to the loopback address with '127.0.0.1:5432:5432'.
Docker Compose v2 ignores the top-level version key and prints a warning about it. Delete the first line.
It only controls start order. If a service needs the database to accept connections, add a healthcheck and use depends_on with condition: service_healthy.
A few of the services (Adminer and MailHog, for example) default to latest. Pin an exact version so a rebuild next month does not change your stack.