Serversinc

Tugboat

A guide to using Tugboat for managing cloud resources and deployments.

Tugboat is a small node.js web server that runs on your server and allows Serversinc to manage your server's resources. It's installed during provisioning and runs in a docker container, by default Tugboat listens for requests on port 7567.

During provisioning, Tugboat is configured to connect to Serversinc's API and register your server. This allows Serversinc to manage your server's Docker containers, trigger builds, and stream logs.

Tugboat is designed to be lightweight and efficient, ensuring minimal impact on your server's performance while providing essential management capabilities.

Features

  • Heartbeat: Tugboat sends a heartbeat to Serversinc every 60 seconds to let us know your server is online, and the status of your containers.
  • Docker Management: Tugboat allows Serversinc to manage your server's Docker containers, including starting, stopping, and removing containers.
  • Builds: Tugboat can trigger builds on your server, allowing you to deploy new versions of your applications.
  • Logs: Tugboat can stream logs from your server's containers to Serversinc, allowing you to view logs in real-time.
  • Metrics: Tugboat collects metrics from your server and containers, allowing you to monitor resource usage and performance.

Security

Tugboat is secured by a token that is generated during it's first run. This token is stored locally on your server and is used to authenticate requests from Serversinc.

Open Source

As Tugboat runs on your server, it's open source and available on GitHub.