You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sourcebot can be deployed in seconds using our official docker image. Visit our [docs](https://docs.sourcebot.dev/docs/deployment-guide) for more information.
75
+
Sourcebot can be deployed in seconds using Docker Compose. Visit our [docs](https://docs.sourcebot.dev/docs/deployment/docker-compose) for more information.
2. In the same directory as the `docker-compose.yml` file, create a [configuration file](https://docs.sourcebot.dev/docs/configuration/config-file). The configuration file is a JSON file that configures Sourcebot's behaviour, including what repositories to index, language model providers, auth providers, and more.
// This config creates a single connection to GitHub.com that
89
+
// indexes the Sourcebot repository
82
90
"connections": {
83
-
// Comments are supported
84
91
"starter-connection": {
85
92
"type": "github",
86
93
"repos": [
@@ -91,30 +98,12 @@ echo '{
91
98
}'> config.json
92
99
```
93
100
94
-
2. Run the docker container
101
+
3. Update the secrets in the `docker-compose.yml` and then run Sourcebot using:
95
102
```sh
96
-
docker run \
97
-
-p 3000:3000 \
98
-
--pull=always \
99
-
--rm \
100
-
-v $(pwd):/data \
101
-
-e CONFIG_PATH=/data/config.json \
102
-
--name sourcebot \
103
-
ghcr.io/sourcebot-dev/sourcebot:latest
103
+
docker compose up
104
104
```
105
-
<details>
106
-
<summary>What does this command do?</summary>
107
-
108
-
- Pull and run the Sourcebot docker image from [ghcr.io/sourcebot-dev/sourcebot:latest](https://github.com/sourcebot-dev/sourcebot/pkgs/container/sourcebot).
109
-
- Mount the current directory (`-v $(pwd):/data`) to allow Sourcebot to persist the `.sourcebot` cache.
110
-
- Clones sourcebot at `HEAD` into `.sourcebot/github/sourcebot-dev/sourcebot`.
111
-
- Indexes sourcebot into a .zoekt index file in `.sourcebot/index/`.
112
-
- Map port 3000 between your machine and the docker image.
113
-
- Starts the web server on port 3000.
114
-
</details>
115
-
</br>
116
105
117
-
3. Visit `http://localhost:3000` to start using Sourcebot
106
+
4. Visit `http://localhost:3000` to start using Sourcebot
118
107
</br>
119
108
120
109
To configure Sourcebot (index your own repos, connect your LLMs, etc), check out our [docs](https://docs.sourcebot.dev/docs/configuration/config-file).
Copy file name to clipboardExpand all lines: docs/docs/configuration/environment-variables.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Environment variables
3
3
sidebarTitle: Environment variables
4
4
---
5
5
6
-
<Note>This page provides a detailed reference of all environment variables supported by Sourcebot. If you're just looking to get up and running, we recommend starting with the [deployment guide](/docs/deployment-guide) instead.</Note>
6
+
<Note>This page provides a detailed reference of all environment variables supported by Sourcebot. If you're just looking to get up and running, we recommend starting with the [deployment guides](/docs/deployment/docker-compose) instead.</Note>
7
7
8
8
### Core Environment Variables
9
9
The following environment variables allow you to configure your Sourcebot deployment.
This guide will walk you through deploying Sourcebot locally or on a VM using Docker Compose. We will use the [docker-compose.yml](https://github.com/sourcebot-dev/sourcebot/blob/main/docker-compose.yml) file from the Sourcebot repository. This is the simplest way to get started with Sourcebot.
6
+
7
+
If you are looking to deploy onto Kubernetes, see the [Kubernetes (Helm)](/docs/deployment/k8s) guide.
8
+
9
+
## Get started
10
+
11
+
<Steps>
12
+
<Steptitle="Requirements">
13
+
- docker & docker compose. Use [Docker Desktop](https://www.docker.com/products/docker-desktop/) on Mac or Windows.
14
+
</Step>
15
+
<Steptitle="Obtain the Docker Compose file">
16
+
Download the [docker-compose.yml](https://github.com/sourcebot-dev/sourcebot/blob/main/docker-compose.yml) file from the Sourcebot repository.
In the same directory as the `docker-compose.yml` file, create a [configuration file](/docs/configuration/config-file). The configuration file is a JSON file that configures Sourcebot's behaviour, including what repositories to index, language model providers, auth providers, and more.
26
+
27
+
```bash wrap icon="terminal" Create example config
Copy file name to clipboardExpand all lines: docs/docs/features/agents/review-agent.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ codebase that the agent may fetch to perform the review.
10
10
11
11
This agent provides codebase-aware reviews for your PRs. For each diff, this agent fetches relevant context from Sourcebot and feeds it into an LLM for a detailed review of your changes.
12
12
13
-
The AI Code Review Agent is [fair source](https://github.com/sourcebot-dev/sourcebot/tree/main/packages/web/src/features/agents/review-agent) and packaged in [Sourcebot](https://github.com/sourcebot-dev/sourcebot). To get started using this agent, [deploy Sourcebot](/docs/deployment-guide)
13
+
The AI Code Review Agent is [fair source](https://github.com/sourcebot-dev/sourcebot/tree/main/packages/web/src/features/agents/review-agent) and packaged in [Sourcebot](https://github.com/sourcebot-dev/sourcebot). To get started using this agent, [deploy Sourcebot](/docs/deployment/docker-compose)
14
14
and then follow the configuration instructions below.
0 commit comments