Install DoltLab
The latest version of DoltLab is v0.4.2 and to get started running your own DoltLab instance, you can follow the steps below. To see release notes for DoltLab's releases or to report and track DoltLab issues, visit DoltLab's issues repository.
Please note, that to upgrading to a newer version of DoltLab will require you to kill the older version of DoltLab and install the newer one, which may result in data loss.

Recommended Minimum Hardware

DoltLab is currently available for Linux and we recommend the following minimum hardware for running your own DoltLab instance:
  • 4 CPU and 16 GB of memory
  • 100 GBs of disk (DoltLab's container images alone require about 4 GBs of disk). Depending on your use case, this may not be enough to back all database data, and user uploaded files.
  • Ubuntu 18.04/20.04 Operating System
  • Host IP must be accessible on the public internet.
  • Host should allow egress TCP connections.
  • The following TCP ports must be open on the host:

Step 1: Install DoltLab's Dependencies on the Host

Once you've provisioned a Linux host and properly configured it's networking interface, you can now install DoltLab's dependencies.
If your host is running Ubuntu 18.04/20.04, the quickest way to install these dependencies is with this ubuntu-bootstrap.sh script. CentOS 7 users can use the centos-bootstrap.sh script. These scripts will also download and unzip DoltLab at the specified DOLTLAB_VERSION to a local doltlab directory.
To use them:
1
export DOLTLAB_VERSION=v0.4.2
2
chmod +x ubuntu-bootstrap.sh
3
sudo ./ubuntu-bootstrap.sh with-sudo "$DOLTLAB_VERSION"
4
cd doltlab
5
sudo newgrp docker # login as root to run docker without sudo
Copied!
1
export DOLTLAB_VERSION=v0.4.2
2
chmod +x centos-bootstrap.sh
3
sudo ./centos-bootstrap.sh with-sudo "$DOLTLAB_VERSION"
4
cd doltlab
5
sudo newgrp docker # login as root to run docker without sudo
Copied!
Otherwise, install the following dependencies on your host:
Once these are installed, follow the post-installation steps for Docker to ensure you can run it without sudo, then verify with:
1
docker ps
2
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Copied!

Step 2: Download DoltLab

Next, download and unzip DoltLab. To install the latest version of DoltLab run:
1
curl -LO https://doltlab-releases.s3.amazonaws.com/linux/amd64/doltlab-latest.zip
2
unzip doltlab-latest.zip -d doltlab
3
cd doltlab
Copied!
To install a specific version, run:
1
export DOLTLAB_VERSION=v0.4.2
2
curl -LO https://doltlab-releases.s3.amazonaws.com/linux/amd64/doltlab-${DOLTLAB_VERSION}.zip
3
unzip doltlab-${DOLTLAB_VERSION}.zip -d doltlab
4
cd doltlab
Copied!
Inside the unzipped doltlab directory, you'll find the following items:
  • envoy.tmpl
  • gentokenenckey
  • send_doltlab_deployed_event
  • smtp_connection_helper
  • shell-db.sh
  • docker-compose.yaml
  • start-doltlab.sh
envoy.tmpl is an template file used to create the Envoy proxy configuration file called envoy.yaml.
gentokenenckey, short for "generate token encryption key" is a binary used to generate token encryption keys used by DoltLab. The code is available here.
send_doltlab_deployed_event is a binary that sends a single request to our metrics server, letting us track how many DoltLab instances get deployed each day. This information helps us properly fund and staff our DoltLab team. The source for this binary is here.
smtp_connection_helper is a binary used to help troubleshoot any issues your DoltLab instance might have when establishing a connection to your existing SMTP server. This tool uses similar code to DoltLab's email service and should successfully send a test email if the connection to the SMTP server was configured correctly. The source code for the tool is available here and basic instructions for using the tool are here.
shell-db.sh is a script that will open a PostgreSQL shell to your running DoltLab's PostgreSQL server. The POSTGRES_PASSWORD you set when starting DoltLab is required by this script as PGPASSWORD. A successful connection will display a dolthubapi=# prompt.
docker-compose.yaml is a complete Docker Compose configuration file that will spin up all the services required to run DoltLab.
start-doltlab.sh is a helper script designed to quickly and easily start DoltLab. See the following section for more information about how to use this script.

Step 3: Start DoltLab

The recommended way to run DoltLab is with the start-doltlab.sh script included in DoltLab's zip folder. This script requires the following environment variables to be set:
1
export HOST_IP=<Host IP>
2
export POSTGRES_PASSWORD=<Password>
3
export DOLTHUBAPI_PASSWORD=<Password>
4
export POSTGRES_USER="dolthubadmin"
5
export EMAIL_USERNAME=<SMTP Email Username>
6
export EMAIL_PASSWORD=<SMTP Email Password>
7
export EMAIL_PORT=<STMP Email Port>
8
export EMAIL_HOST=<SMTP Email Host>
9
export NO_REPLY_EMAIL=<An Email Address to Receive No Reply Messages>
Copied!
HOST_IP should be the IP address or DNS name of the Linux host running DoltLab. POSTGRES_PASSWORD and DOLTHUBAPI_PASSWORD may be set to any valid PostgreSQL password. POSTGRES_USER must be "dolthubadmin". EMAIL_USERNAME should be a valid username authorized to use existing SMTP server. EMAIL_PASSWORD should be the password for the aforementioned username of the SMTP server. EMAIL_PORT a STARTTLS port to the existing SMTP server is assumed by default. To use an implicit TLS port, please follow these steps. EMAIL_HOST should be the host of the existing SMTP server. NO_REPLY_EMAIL should be the email address that receives no-reply messages.
Supported SMTP Authentication methods
Starting in DoltLab v0.3.1, admins can use different SMTP authentication protocols to connect to an existing SMTP server. By default, ./start-doltlab.sh sets the environment variable EMAIL_AUTH_METHOD to plain.
Supported EMAIL_AUTH_METHOD options are plain, anonymous, external, oauthbearer, or disable.
plain requires the environment variables EMAIL_USERNAME and EMAIL_PASSWORD to be set and uses the optional environment variable EMAIL_IDENTITY. anonymous uses the optional environment variable EMAIL_TRACE. external uses the optional environment variable EMAIL_IDENTITY. oauthbearer requires the environment variables EMAIL_USERNAME and EMAIL_OAUTH_TOKEN to be set. disable will result in an unauthenticated SMTP server connection.
If you are experiencing any SMTP server connection issues (or DoltLab account creation issues) please see the SMTP troubleshooting guide.
Default user `admin`
Starting with DoltLab v0.4.1, the default user admin is created, when DoltLab's API server starts.
This default user allows DoltLab admins to immediately sign in to DoltLab and begin using the product, even if their DoltLab instance is not successfully connected to an SMTP server.
By default, the ./start-doltlab.sh script will create a default user DEFAULT_USER=admin with password DEFAULT_USER_PASSWORD=DoltLab1234 and the email address DEFAULT_USER_EMAIL=$NO_REPLY_EMAIL, which gets its value from the supplied NO_REPLY_EMAIL environment variable. To overwrite these default values, simply change the values of their corresponding environment variables.
Once these variables are set, simply run the start-doltlab.sh script:
1
./start-doltlab.sh # runs doltlab using docker-compose in daemon mode
Copied!
The running DoltLab processes can be viewed with docker ps:
1
docker ps
2
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3
c1087c9f6004 public.ecr.aws/dolthub/doltlab/dolthub-server:v0.3.1 "docker-entrypoint.s…" 9 days ago Up 9 days 3000/tcp doltlab_doltlabui_1
4
a63aade4a36e public.ecr.aws/dolthub/doltlab/dolthubapi-graphql-server:v0.3.1 "docker-entrypoint.s…" 9 days ago Up 9 days 9000/tcp doltlab_doltlabgraphql_1
5
5b2cad62d4e5 public.ecr.aws/dolthub/doltlab/dolthubapi-server:v0.3.1 "/app/go/services/do…" 9 days ago Up 9 days doltlab_doltlabapi_1
6
e6268950f987 public.ecr.aws/dolthub/doltlab/doltremoteapi-server:v0.3.1 "/app/go/services/do…" 9 days ago Up 9 days 0.0.0.0:100->100/tcp, :::100->100/tcp, 0.0.0.0:50051->50051/tcp, :::50051->50051/tcp doltlab_doltlabremoteapi_1
7
52f39c016537 public.ecr.aws/dolthub/doltlab/fileserviceapi-server:v0.3.1 "/app/go/services/fi…" 9 days ago Up 9 days doltlab_doltlabfileserviceapi_1
8
0f952e7c7007 envoyproxy/envoy-alpine:v1.18-latest "/docker-entrypoint.…" 9 days ago Up 9 days 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:4321->4321/tcp, :::4321->4321/tcp, 10000/tcp doltlab_doltlabenvoy_1
9
204e0274798b public.ecr.aws/dolthub/doltlab/postgres-server:v0.3.1 "docker-entrypoint.s…" 9 days ago Up 9 days 5432/tcp doltlab_doltlabdb_1
Copied!
And navigating to http://${HOST_IP}:80 in a web browser should show the DoltLab homepage.