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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>"
},
"name": "deploy_docker_local"
}
}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 |