Skip to content
Discussion options

You must be logged in to vote

Adding to this discussion as it came up quickly in my research.
Apologies if it's rude to post to old threads in this repo.

Instead of running (and exposing) express, you can get the users by using mongosh
I run docker-compose so I added this:

  mongosh:
    image: alpine/mongosh
    command: "/bin/true" # Stops it from running during `up`
    depends_on:
      mongodb:
        condition: service_started
    environment:
      - MONGODB_URL=mongodb://mongodb:27017
    volumes:
      - ./mongosh/scripts:/scripts

and then added the list_users.sh script to ./mongosh/scripts/`

#!/bin/bash

MONGO_CONNECTION_STRING="mongodb://mongodb:27017/LibreChat"

# --- MongoDB Command ---
# This is a Java…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Inglan
Comment options

@HASH717
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by danny-avila
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants