# Deploying Mito for Streamlit in a Docker Image

{% hint style="info" %}
Some of the features listed below are [Mito Enterprise](https://trymito.io/plans) features. [Upgrade](https://www.trymito.io/plans) to set Mito Config variables.
{% endhint %}

## Deploying Mito for Streamlit on a Docker Image

By default, Mito writes metadata about each analysis to the `~/.mito` folder on any computer/server it is used on.&#x20;

To deploy Mito for Streamlit on docker, you either need to:

1. Give the docker container permission to write to the folder `~/.mito/`
2. Update the `MITO_CONFIG_HOME_FOLDER` to a folder that the docker container already has write permissions to.&#x20;

#### Updating the `MITO_CONFIG_HOME_FOLDER`

Add the following code to the top of your Streamlit application:

```
import os
os.environ['MITO_CONFIG_VERSION'] = '2'
os.environ['MITO_CONFIG_HOME_FOLDER'] = '/path/to/folder/you/have/permissions/on'
```

Note that setting the Mito config is a Mito Enterprise feature.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trymito.io/mito-for-streamlit/common-design-patterns/deploying-mito-for-streamlit-in-a-docker-image.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
