Docker Compose Generator
Add services, wire up ports, volumes, environment variables and health checks, then export a ready-to-run docker-compose.yml — targeting the modern Compose Specification, no obsolete version: key.
Presets
Start from a common stack
Each preset replaces the current services, volumes and networks with a ready-made multi-service example. Edit anything afterwards.
Services
Define each container
One block per service. A service needs an image, a build context, or both.
Ports (host : container)
Volumes
Environment variables
Depends on
Add another service to wire up a dependency.
Networks
No networks defined yet — add one below in the Networking card.
Storage
Named volumes
Volumes referenced in a service's mounts (like dbdata:/var/lib/postgresql/data) are declared under volumes: automatically. Add one here only if you need it declared before it's mounted anywhere.
Networking
Networks
Add a network, then tick it on for the services above so they can reach each other by service name.
No networks yet.
Output
docker-compose.yml
Compose file
services:
web:
image: nginx:alpine
container_name: wespner-web
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./html:/usr/share/nginx/html:ro
Running it
Save this as docker-compose.yml and run docker compose up -d in that folder to start the stack.
Running your own game server?
Wespner game servers with DDoS protection, NVMe drives and activation within minutes.