Skip to main content
You can deploy the Literal AI platform anywhere by provisioning the infrastructure, setting up the environment variables and running the Docker image.

Get the Image

Provision the Infrastructure

To run the Literal AI platform, you need to set up the following services:
  1. PostgreSQL database >= 15
  2. File storage (AWS S3, Google Cloud Storage, Azure Blob Storage)
  3. [Optional] Redis cache
  4. [Optional] SMTP server

Disclaimer

It is your responsibility to ensure that the infrastructure is secure and compliant with your company standards. Here are some recommendations:
  • Run the database and redis cache in a private network so that only the container running the Literal AI platform can access them.
  • Disallow public access to the file storage.
  • Disable credential authentication and use OAuth providers for authentication.

Configure Environment Variables

Before running the container, you need to set up the environment variables.

1. Database Configuration

The pgcrypto module is required for PostgreSQL. When using Azure, you will need to manually add the extension.

Required

You can either pass the full connection string or the individual components. OR

Optional

2. Authentication Configuration

Provider Agnostic

Provider Specific

Remember you will have to allow the OAuth redirect URL in your provider’s settings.

3. File Storage Configuration

Provider Agnostic

Provider Specific

Configure CORS for your storage solution:

4. Cache Configuration [Optional]

Setting up a cache is optional, but recommended to decrease latency.
Either REDIS_URL or REDISHOST and REDISPORT can be used.
The cache allows for asynchronous task handling such as:
  • step ingestion
  • AI evals monitoring
  • experiment runs
Control over the queues and workers handling the asynchronous tasks requires an authentication token defined via the ADMIN_AUTH_TOKEN environment variable. Set it to a non-empty value to be able to investigate your cache-based queueing system.

5. SMTP Configuration [Optional]

Setting up SMTP is optional. It enables Literal AI to send emails for password resets and project invitations.

Configure the Port and Start the Container

The server within the Docker image runs on port 3000. Ensure this port is exposed.

Start the Container

You should now be able to start the container and access the Literal AI Platform.