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
The following guide will walk you through the steps to deploy Sourcebot on your own infrastructure. Sourcebot is distributed as a [single docker container](/docs/overview#architecture) that can be deployed to a k8s cluster, a VM, or any platform that supports docker.
7
+
Sourcebot is distributed as a [single docker container](/docs/overview#architecture) that can be deployed to a k8s cluster, a VM, or any platform that supports docker. The following guide will walk you through the steps to deploy Sourcebot locally using [Docker compose](https://docs.docker.com/compose).
8
8
9
9
10
-
<Note>Hit an issue? Please let us know on [GitHub](https://github.com/sourcebot-dev/sourcebot/issues/new/choose) or by [emailing us](mailto:team@sourcebot.dev).</Note>
10
+
<Note>Hit an issue? Please let us know on [GitHub](https://github.com/sourcebot-dev/sourcebot/issues/new) or by [emailing us](mailto:team@sourcebot.dev).</Note>
11
+
12
+
## Walkthrough
13
+
---
11
14
12
15
<Steps>
13
16
<Steptitle="Requirements">
14
-
- Docker -> use [Docker Desktop](https://www.docker.com/products/docker-desktop/) on Mac or Windows.
17
+
- docker & docker compose -> use [Docker Desktop](https://www.docker.com/products/docker-desktop/) on Mac or Windows.
18
+
</Step>
19
+
<Steptitle="Obtain the Docker Compose file">
20
+
Download the [docker-compose.yml](https://github.com/sourcebot-dev/sourcebot/blob/main/docker-compose.yml) file from the Sourcebot repository.
Create a `config.json` file that tells Sourcebot which repositories to sync and index:
@@ -38,40 +48,24 @@ The following guide will walk you through the steps to deploy Sourcebot on your
38
48
<Steptitle="Launch your instance">
39
49
<Warning>If you're deploying Sourcebot behind a domain, you must set the [AUTH_URL](/docs/configuration/environment-variables) environment variable.</Warning>
40
50
51
+
Launch your Sourcebot instance:
41
52
42
-
In the same directory as `config.json`, run the following command to start your instance:
43
-
44
-
```bash icon="terminal" Start the Sourcebot container
45
-
docker run \
46
-
-p 3000:3000 \
47
-
--pull=always \
48
-
--rm \
49
-
-v $(pwd):/data \
50
-
-e CONFIG_PATH=/data/config.json \
51
-
--name sourcebot \
52
-
ghcr.io/sourcebot-dev/sourcebot:latest
53
+
```bash wrap icon="terminal"
54
+
docker compose up -d
53
55
```
54
-
55
-
<Accordiontitle="Details">
56
-
**This command**:
57
-
- pulls the latest version of the `sourcebot` docker image.
58
-
- mounts the working directory to `/data` in the container to allow Sourcebot to persist data across restarts, and to access the `config.json`. In your local directory, you should see a `.sourcebot` folder created that contains all persistent data.
59
-
- runs any pending database migrations.
60
-
- starts up all services, including the webserver exposed on port 3000.
61
-
- reads `config.json` and starts syncing.
62
-
</Accordion>
63
-
64
56
</Step>
65
57
66
58
<Steptitle="Complete onboarding">
67
-
Navigate to `http://localhost:3000` and complete the onboarding flow.
59
+
Navigate to [http://localhost:3000](http://localhost:3000) and complete the onboarding flow.
68
60
</Step>
69
61
70
62
<Steptitle="Done">
71
63
You're all set! If you'd like to setup [Ask Sourcebot](/docs/features/ask/overview), configure a language model [provider](/docs/configuration/language-model-providers).
72
64
</Step>
73
65
</Steps>
74
66
67
+
Checkout the [configuration docs](/docs/configuration/environment-variables) to learn more about how to configure your deployment.
0 commit comments