forked from webrecorder/browsertrix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move deployment info to deployment.md (webrecorder#159)
* add deployment instructions
- Loading branch information
Showing
3 changed files
with
47 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Deploying Browsertrix Cloud | ||
|
||
Currently Browsertrix Cloud can be deployed in both Docker and Kubernetes. | ||
|
||
Some basic instructions are provided below, we plan to expand this into more detail tutorial in the future. | ||
|
||
## Deploying to Docker | ||
|
||
For testing out Browsertrix Cloud on a single, local machine, the Docker Compose-based deployment is recommended. | ||
|
||
To deploy via local Docker instance, copy the `config.sample.env` to `config.env`. | ||
|
||
Docker Compose is required. | ||
|
||
Then, run `docker-compose build; docker-compose up -d` to launch. | ||
|
||
To update/relaunch, use `./docker-restart.sh`. | ||
|
||
The API should be available at: `http://localhost:8000/docs` | ||
|
||
|
||
Note: When deployed in local Docker, failed crawls are not retried currently. Scheduling is handled by a subprocess, which stores active schedule in the DB. | ||
|
||
|
||
|
||
## Deploying to Kubernetes | ||
|
||
For deploying in the cloud and across multiple machines, the Kubernetes (k8s) deployment is recommended. | ||
|
||
To deploy to K8s, `helm` is required. Browsertrix Cloud comes with a helm chart, which can be installed as follows: | ||
|
||
`helm install -f ./chart/values.yaml btrix ./chart/` | ||
|
||
This will create a `browsertrix-cloud` service in the default namespace. | ||
|
||
For a quick update, the following is recommended: | ||
|
||
`helm upgrade -f ./chart/values.yaml btrix ./chart/` | ||
|
||
|
||
Note: When deployed in Kubernetes, failed crawls are automatically retried. Scheduling is handled via Kubernetes Cronjobs, and crawl jobs are run in the `crawlers` namespace. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker buildx build --platform linux/amd64 --push -t registry.digitalocean.com/btrix/webrecorder/browsertrix-api ./backend/ |