browsertrix/docs/deploy/production.md
Ilya Kreymer 829548af0f doc tweaks:
- fix typos in docs
- update prod deployment info
- update minikube info
- add info on how to run with local images
- bump version to 1.1.0-beta.3 for testing multiarch build
2022-12-05 18:14:19 -08:00

2.4 KiB

Production: Self-Hosted and Cloud

For production and hosted deployments (both on a single machine or in the cloud), the only requirement is to have a designed domain and (strongly recommended, but not required) second domain for signing web archives.

We are also experimenting with Ansible playbooks for cloud deployment setups.

The production deployments also allow using an external mongodb server, and/or external S3-compatible storage instead of the bundled minio.

Single Machine Deployment with MicroK8S

For a single-machine production deployment, we recommend using microk8s.

  1. Install MicroK8S, as suggested in the local deployment guide and ensure the ingress and cert-manager addons are also enabled.

  2. Copy cp ./chart/examples/microk8s-hosted.yaml ./chart/my-config.yaml to make local changes.

  3. Set the ingress.host, ingress.cert_email and signing.host fields in ./chart/my-config.yaml to your host and domain

  4. Set the superadmin username and password, and mongodb username and password in ./chart/my-config.yaml

  5. Run with:

    helm upgrade --install -f ./chart/values.yaml -f ./chart/my-config.yaml btrix ./chart/
    

Using Custom Storage

If you would like to use existing external storage, such an existing S3-compatible storage, also set the default storage, for example:

minio_local: false

storages:
  - name: "default"
    access_key: <access key>
    secret_key: <secret key>

    endpoint_url: "https://s3.<region>.amazonaws.com/bucket/path/"

Note that this setup is not limited to Amazon S3, but should work with any S3-compatible storage service.

Using Custom MongoDB

If you would like to use an externally hosted MongoDB, you can add the following config to point to a custom MongoDB instance.

The db_url should follow the MongoDB Connection String Format which should include the username and password of the remote instance.

mongo_local: false

mongo_auth:
  db_url: mongodb+srv://...


## Cloud Deployment

There are also many ways to deploy Browsertrix Cloud on various cloud providers.

To simplify this process, we are working on Ansible playbooks for setting up Browsertrix Cloud on commonly used infrastructure.

Thus, far we have the following Ansible playbooks available:

### Digital Ocean

*TODO: Add more details*