GitHub user dosubot[bot] added a comment to the discussion: how do i connect to 
atlas mongo db. could you share me steps if i need install any packages to 
docker image

<!-- Answer -->
Direct connection from Superset to Atlas MongoDB is not natively 
supported—Superset requires a SQLAlchemy-compatible driver, and MongoDB is not 
listed among the directly supported databases. The recommended approach is to 
use an intermediary SQL engine like Trino, which can connect to MongoDB and 
then expose it to Superset as a SQL source.

If you want to add Python packages (such as a Trino connector) to your Superset 
Docker image, create a `./docker/requirements-local.txt` file, add the required 
package (for example, `trino`), and then rebuild your Docker stack. Example 
steps:

1. Create `./docker/requirements-local.txt`
2. Add your new package, e.g., `trino`
3. Rebuild Docker:  
   ```
   docker compose down -v
   docker compose up
   ```
This process is described in the [Superset Docker 
documentation](https://github.com/apache/superset/blob/a64b9ac84f48074340d14e5cf92505627451ec52/docker/README.md).

After that, configure Trino to connect to your Atlas MongoDB, and then connect 
Superset to Trino using the appropriate SQLAlchemy connection string.

If you need direct MongoDB support, you would need a SQLAlchemy dialect for 
MongoDB, but none is officially supported or documented in Superset at this 
time. Let me know if you want more details on the Trino setup or have a 
different workflow in mind.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/60ce790a-4854-42ca-a566-de384145c3a3?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/60ce790a-4854-42ca-a566-de384145c3a3?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/60ce790a-4854-42ca-a566-de384145c3a3?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/60ce790a-4854-42ca-a566-de384145c3a3?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/60ce790a-4854-42ca-a566-de384145c3a3?feedback_type=hallucination)
 | [Report 
šŸ›](https://app.dosu.dev/response-feedback/60ce790a-4854-42ca-a566-de384145c3a3?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/60ce790a-4854-42ca-a566-de384145c3a3?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Sh
 are on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/33747)

GitHub link: 
https://github.com/apache/superset/discussions/33747#discussioncomment-13435864

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to