A command-line tool to generate Docker Compose files for common services like MinIO, PostgreSQL, MSSQL, and MySQL.
- Interactive service selection
- Configurable usernames and passwords
- Custom port mapping
- Automatic volume mounting
- Supports the following services:
- MinIO (Object Storage)
- PostgreSQL
- Microsoft SQL Server
- MySQL
- Go 1.21 or later
- Docker and Docker Compose installed on your system
go mod tidy
go build -o docker-generate
- Run the application:
./docker-generate
-
Select the services you want to include using space bar and press enter to confirm.
-
For each selected service, you'll be prompted to enter:
- Username
- Password
- Port number
-
The application will generate a
docker-compose.yml
file in the current directory. -
Start the services using:
docker-compose up -d
- MinIO: 9000 (API), 9001 (Console)
- PostgreSQL: 5432
- MSSQL: 1433
- MySQL: 3306
All services are configured with local volume mounts:
- MinIO:
./minio/data
- PostgreSQL:
./postgresql/data
- MSSQL:
./mssql/data
- MySQL:
./mysql/data