deploy_docker_local
Deploy a project locally with Docker and Docker Compose by auto-generating Dockerfile and docker-compose.yml, with optional PostgreSQL, MongoDB, and Redis containers.
Instructions
Deploy the project locally using Docker/Docker Compose. Auto-generates Dockerfile and docker-compose.yml. Can include PostgreSQL, MongoDB, and Redis containers. Requires Docker to be installed and running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port to expose | |
| build | No | Build images before starting | |
| detach | No | Run in background | |
| envVars | No | Additional environment variables | |
| withRedis | No | Include Redis container | |
| projectPath | Yes | Absolute path to the project | |
| serviceName | No | Docker service name | app |
| withMongoDB | No | Include MongoDB container | |
| withPostgres | No | Include PostgreSQL container | |
| dockerfilePath | No | Custom Dockerfile path (auto-detected if not set) | |
| generateCompose | No | Generate docker-compose.yml | |
| generateDockerfile | No | Generate Dockerfile if none exists |