• 1. Setting Up Tugboat
    • Connect With Your Provider
    • Create a New Project
    • Add Repos to the Project
    • Select Repo Settings
    • Create a Tugboat Config File
  • 2. Setting Up Services
    • How to Set Up Services
      • Name Your Service
      • Specify a Service Image
      • Leverage Service Commands
      • Define a Default Service
      • Expose a Service HTTP Port
      • Set the Document Root Path
      • Clone Git Repositories Into Your Services
      • Running a Background Process
      • Create Custom Environment Variables
      • Services in Action
    • Service Images
      • Docker Image Version Tags Primer
      • Using Tugboat's Prebuilt Docker Images
      • Using a Docker Image to Mirror Your Production Services
      • Third Party Docker Images
      • Docker Pull under the hood
  • 3. Building a Preview
    • Administer Previews
      • Build Previews
      • Change or Update Previews
      • Delete Previews
      • Change Preview States
    • Using Base Previews
      • Set a Base Preview
      • Change or Update a Base Preview
      • View Base Preview Types
      • Stop Using a Base Preview
      • Delete a Base Preview
      • Building New Previews
    • Share a Preview
      • Manually Share a Preview URL
      • Auto Share Preview URLs
    • Automate Previews
      • Auto-generate Previews
      • Auto-update Previews
      • Auto-delete Previews
    • Preview Deep Dive
      • How Previews Work
      • Inside a Preview
      • Optimize Preview Builds
  • Visual Diffs
    • Configure Visual Diffs
    • View Visual Diffs
    • How Visual Diffs Work
    • Use Visual Diff Thresholds
  • Lighthouse Integration
    • Configure Lighthouse
    • View Lighthouse Reports
    • How Lighthouse in Tugboat works
  • Starter Configs
    • Examples
      • Gatsby Static Site
      • Static HTML
      • MkDocs Static Site
      • Hugo Static Site
      • Jekyll Static Site
      • Generic LAMP
      • Ruby on Rails
      • Adobe Experience Manager
      • Wagtail CMS
    • Tutorials
      • Drupal 10
      • Drupal 9
      • Drupal 8
      • Drupal 7
      • WordPress
      • Laravel
      • Pantheon
      • Lagoon
    • Code Snippets
      • Install Node.js
      • Terminal Aliases and Programs
      • Add a phpMyAdmin service
      • Warm a Page Cache Within Tugboat
      • Import a MySQL Database
  • Third-Party Integrations
    • Diffy Integration
    • Slack Webhook Integration
    • Tenon.io Integration
    • Testery.io Integration
  • Tugboat's CLI
    • Install the Cli
    • Set an Access Token
    • Use the Cli
  • Troubleshooting
    • Preview Won't Build
    • Preview has built incorrectly
    • Debugging Configuration files
    • How to Fix Problem X
  • Manage Users
    • Add a User
    • Remove a User
    • Change User Permissions
    • User Permission Levels
    • Add a Tugboat Bot to your Team
    • Account Authentication
  • Tugboat Billing
    • Tugboat Pricing
    • Change Plan
    • Change Billing Information
    • Cancel Billing
  • Reference
    • Tugboat Configuration
    • Tugboat Error Codes
    • Environment Variables
    • Tugboat Images
    • Tugboat Community Images
  • FAQ
    • Compatible Technologies
    • Common Questions
    • Tugboat IP Addresses
    • How to find Tugboat IDs
  • Support

Built with from Tugboat to you!

Edit this page
Tugboat Documentation > Setting Up Services

Chapter 2

Setting up Services

How to set up Services, and more about images.

  • How to Set Up Services
    • Name Your Service
    • Specify a Service Image
    • Leverage Service Commands
    • Define a Default Service
    • Expose a Service HTTP Port
    • Set the Document Root Path
    • Clone Git Repositories Into Your Services
    • Running a Background Process
    • Create Custom Environment Variables
    • Services in Action
  • Service Images
    • Docker Image Version Tags Primer
    • Using Tugboat's Prebuilt Docker Images
    • Using a Docker Image to Mirror Your Production Services
    • Third Party Docker Images
    • Docker Pull under the hood

A Tugboat Service plays the role of what a server might provide in a production environment. A service can be a web server, a database server, a cache store, etc. Services form the core of your Config file, working together to build a Preview.