ssh_docker_deploy
Deploy Docker containers to remote servers via SSH by executing docker-compose, build, or run commands from a specified working directory with configurable ports, volumes, and environment variables.
Instructions
Deploy Docker containers with working directory context
Input Schema
Name | Required | Description | Default |
---|---|---|---|
buildArgs | No | Build arguments for Docker build | |
composeFile | No | Docker compose file name | docker-compose.yml |
connectionId | Yes | SSH connection ID | |
containerName | No | Container name (for run) | |
deploymentType | Yes | Type of Docker deployment | |
detached | No | Run in detached mode | |
envVars | No | Environment variables | |
imageName | No | Docker image name (for build/run) | |
ports | No | Port mappings (e.g., ["8080:80", "3000:3000"]) | |
volumes | No | Volume mappings (e.g., ["/host/path:/container/path"]) | |
workingDirectory | Yes | Directory containing docker-compose.yml or Dockerfile |
Input Schema (JSON Schema)
{
"properties": {
"buildArgs": {
"description": "Build arguments for Docker build",
"type": "object"
},
"composeFile": {
"default": "docker-compose.yml",
"description": "Docker compose file name",
"type": "string"
},
"connectionId": {
"description": "SSH connection ID",
"type": "string"
},
"containerName": {
"description": "Container name (for run)",
"type": "string"
},
"deploymentType": {
"description": "Type of Docker deployment",
"enum": [
"compose",
"build",
"run"
],
"type": "string"
},
"detached": {
"default": true,
"description": "Run in detached mode",
"type": "boolean"
},
"envVars": {
"description": "Environment variables",
"type": "object"
},
"imageName": {
"description": "Docker image name (for build/run)",
"type": "string"
},
"ports": {
"description": "Port mappings (e.g., [\"8080:80\", \"3000:3000\"])",
"items": {
"type": "string"
},
"type": "array"
},
"volumes": {
"description": "Volume mappings (e.g., [\"/host/path:/container/path\"])",
"items": {
"type": "string"
},
"type": "array"
},
"workingDirectory": {
"description": "Directory containing docker-compose.yml or Dockerfile",
"type": "string"
}
},
"required": [
"connectionId",
"workingDirectory",
"deploymentType"
],
"type": "object"
}