Deployment guide
The following guide will walk you through the steps to deploy Sourcebot on your own infrastructure. Sourcebot is distributed as a single docker container that can be deployed to a k8s cluster, a VM, or any platform that supports docker.
Walkthrough video
Watch this 1:51 minute video to get a quick overview of how to deploy Sourcebot using Docker.
Step-by-step guide
Requirements
- Docker -> use Docker Desktop on Mac or Windows.
Create a config.json
Create a config.json
file that tells Sourcebot which repositories to sync and index:
This config creates a single GitHub connection named starter-connection
that specifies Sourcebot as a repo to sync. Learn more about the config file.
Launch your instance
In the same directory as config.json
, run the following command to start your instance:
Navigate to localhost:3000
to start searching the Sourcebot repo.
Login
Navigate to http://localhost:3000
and create an account. The first account which is registered on a fresh Sourcebot deployment is given the owner role.
By default, only email / password authentication is enabled. Learn more about authentication.
Done
You’re all set! You can now start searching - checkout the syntax guide to learn more about how to search.