Giter VIP home page Giter VIP logo

mongo-express-docker-extension's Introduction

Mongo Express Docker Extension

Run Mongo Express in Docker Desktop and connect to any MongoDB server.

Mongo Express Docker Extension allows you to connect to any (local or remote) MongoDB server without having to install Mongo Express locally or manually create a Mongo Express Docker container.

Features

  • Run Mongo Express in Docker Desktop.
  • Specify the MongoDB server to connect to.
  • Save credentials for future use.

Installation

You can install the extension directly from the Docker Desktop marketplace using this link:

https://open.docker.com/extensions/marketplace?extensionId=saniewski/mongo-express-docker-extension&tag=1.0.2

Alternatively, you can install it manually by running the following command in your terminal:

docker extension install saniewski/mongo-express-docker-extension:1.0.2

Usage

To connect to a MongoDB server, you can use the Basic authentication method by providing a hostname and a port of the MongoDB instance. Specifying a username and password is optional, depending on the security of your MongoDB server. Alternatively, you can use the Connection String authentication method by providing a valid MongoDB connection string. For instructions on how to use MongoDB connection strings, please, refer to the official MongoDB documentation.

Screenshots

Login Page - Basic 1

Login Page - Basic 2

Login Page - Connection String

Loading Mongo Express

Mongo Express Dashboard

Service Unavailable

mongo-express-docker-extension's People

Contributors

saniewski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mongo-express-docker-extension's Issues

bug fixes

Bug description
A clear and concise description of what the bug is.

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Extension Version: [e.g. v1.0.0]
  • Docker Desktop Version: [e.g. v4.15.0]

Additional context
Add any other context about the problem here.

MongoExpressPage is ready even when MongoExpress app is not yet connected to the database

Bug description
When trying to connect to a non-existing remote MongoDB (e.g. 10.1.1.27), the MongoExpressPage is set as ready and a white screen appears.

Steps to reproduce

  1. Open Mongo Express Docker Extension.
  2. Select "Basic" auth method.
  3. Set hostname to a non-existing MongoDB hostname (e.g. 10.1.1.27).
  4. Click "Connect".
  5. A white page appears shortly after loading the MongoExpressPage.

Expected behavior
Mongo Expres should try to connect for 30 seconds and display a failure message due to the unreachable MongoDB host. A loading screen should be visible instead of the white page.

Environment (please complete the following information):

  • Extension Version: v1.0.1
  • Docker Desktop Version: v4.16.2

Additional Context
It seems the issue does not occur when trying to connect to a non-existing MongoDB instance on localhost.

Cannot connect to Mongo Atlas with a connection string

Bug description
When trying to connect to a Mongo Atlas database with a connection string, the extension fails to connect to a remote server or connects to a local available MongoDB instead.
No connection parameters are passed to the cliArgs in the UI's Docker API client.

Steps to reproduce

  1. (Optional) Create a free Mongo Atlas cluster for testing purposes.
  2. Open Mongo Express Docker Extension.
  3. Select "Connection String" auth method.
  4. Paste in the connection string retrieved from the Mongo Atlas database (e.g. mongodb+srv://<username>:<password>@clusterName.abcdef.mongodb.net/?retryWrites=true&w=majority.

Expected behavior
Mongo Expres should connect to the remote server.

Environment (please complete the following information):

  • Extension Version: v1.0.1
  • Docker Desktop Version: v4.16.2

Fix mongo-express logo not showing up in LoginPage and ServiceUnavailable

When LoginPage is first displayed, the Mongo Express logo is displayed properly, but after navigating to another page (e.g. MongoExpressPage), the logo is not properly fetched from the server.
There's an attempt to fetch file at path /static/media/mongo-express-logo.png, whereas it exists at /ui/static/media/mongo-express-logo.png. Not sure if this is an issue with the UI app setup or with how the logo is imported in the files.

Error in mongo express in docker

"Service Unavailable
Please, make sure the credentials are correct or try again after restarting / reinstalling the extension.
If the problem persists, please create an issue on the extension's GitHub page."

I always get this error. I copy past my Mongodb connection string from mongo atlas and change the accordingly and I always receive the mentioned error.

image

Extension dosent work

Bug description
Extension dosent work, i have a Windows in logs of container witch extension created i see only:

time="2023-03-15T06:34:23Z" level=info msg="Starting listening on /run/guest-services/mongo-express-docker-extension.sock\n"
⇨ http server started on /run/guest-services/mongo-express-docker-extension.sock

Steps to reproduce

  1. Go to 'Mongo Express'
  2. Click on 'Connect'
  3. Circle will spin endlessly
  4. when u go out extension eq "containers" and go back to extension its in intial state.

Expected behavior
Working Extension or a error message so i can search what is wrong.

Screenshots
image

Environment:

  • Extension Version: 1.0.2
  • Docker Desktop Version: 4.17.0

First row of fields (`hostname` and `port`) in the form does not take up the full width of the form

https://mui.com/material-ui/react-stack/

Currently, the first row of the form fields (hostname and port) does not take the full available width of the form. Instead, there appears to be some sort of margin on the left and right of the Stack that the form fields are nested in.
This should be fixed in order for the form fields' stack to have the same width as the other fields (username and password).
Maybe the same issue impacts the "Remember this connection" and "Reset saved credentials" stack. If so, fix this as well.

Image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.