Deploy a docker-compose project
deploy_docker_composeDeploy a Docker Compose application to a remote server: clone or update Git repo, install Docker, write .env, and run compose up.
Instructions
Clones (or updates) a git repo containing a docker-compose.yml, installs Docker if missing, writes a .env file if provided, and runs docker compose up -d --build.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Server IP address or hostname, e.g. 168.119.45.12 | |
| port | No | SSH port, defaults to 22 | |
| branch | No | Git branch to checkout | |
| appName | Yes | Short name for this app, used as the directory name | |
| repoUrl | Yes | Git repo URL containing docker-compose.yml at its root | |
| username | Yes | SSH username, e.g. root or deploy | |
| passphrase | No | Passphrase for the private key, if it has one | |
| envFileContent | No | Contents to write as .env next to docker-compose.yml | |
| privateKeyPath | Yes | Path to the private key on THIS machine, e.g. "~/.ssh/id_ed25519" |