Deployments
How to deploy web applications using Git, Dockerfiles, and Compose.
Deployments
Applications are simply containerized processes. With tug.sh, deploying a service takes just a few clicks. The platform currently supports several deployment methods.
1. From a GIT repository (Webhooks & Dockerfile)
The most popular scenario is deploying a GitHub or GitLab repository containing its own Dockerfile or docker-compose.yml.
- Go to the Deploy tab.
- Choose a previously connected Git provider.
- Select the repository and the target branch (e.g.,
main). - (Optional) Configure environment variables. Our built-in CI/CD process will build the image after every new commit using Webhooks.
2. From an existing image (Docker Registry)
If you already have a built image hosted in a public registry (like Docker Hub) or a private one (such as GHCR or AWS ECR):
- On the deployment screen, select the Deploy from Image option.
- Provide the full image name (e.g.,
ubuntu:latestorghcr.io/my-org/my-app:v1). - Run the deploy. tug.sh will instruct the Agent to pull and start this image with the provided ports and variables.
3. From the Marketplace
If you need to quickly spin up ready-to-use Open Source solutions (like a PostgreSQL database, Redis, Caddy, or MinIO), you can visit the Apps (Marketplace) section. The system will ask you for only the most essential details (e.g., the root password) and will automatically generate and spin up the correct configuration environment with a single click.