This Golang script generates Dockerfiles and Docker Compose configurations for Python-based frameworks (Django+DRF, FastAPI, Flask). Users can specify their framework, port, database (if needed), Redis (if needed), and Celery (if needed). The script automates project creation, Dockerfile setup, and optional docker-compose configuration.
go run main.go --framework=<django|fastapi|flask> [--db=<postgres|mysql>] [--redis] [--celery]-
Generates a project structure for Django, FastAPI, or Flask.
-
Creates a Dockerfile for containerization.
-
Optionally generates docker-compose.yaml for databases, Redis, and Celery.
-
Sets up virtual environments for Django projects and installs dependencies automatically.
Run the following command to generate a Django project with PostgreSQL and Redis:
go run main.go --framework=django- Support for more frameworks (Node.js, Gin, etc.).
- Customizable Dockerfile and Compose templates.
- Advanced service configurations.