Installation Guide
MongoMan can be installed and run either using Docker or by building from source.
Docker Installation
Using docker-compose
Create a docker-compose.yml
file:
version: '3'
services:
mongoman:
image: ghcr.io/aientech/mongoman:main
environment:
- MONGODB_URI=mongodb://mongo:27017
ports:
- '3000:3000'
Then run:
docker-compose up -d
Using Docker directly
docker run -p 3000:3000 -e MONGODB_URI=mongodb://mongo:27017 ghcr.io/aientech/mongoman:main
Local Installation
Prerequisites
- Node.js
- Yarn or npm
- MongoDB instance (local or remote)
Steps
- Clone the repository:
git clone git@github.com:AienTech/mongoman.git
- Navigate to project directory:
cd mongoman
- Install dependencies:
yarn install
- Set up environment variables:
cp .env.example .env.local
- Edit
.env.local
and set your MongoDB connection string:
MONGODB_URI=mongodb://localhost:27017
- Start the development server:
yarn dev
Building from Source
To build the Docker image yourself:
docker build --build-arg MONGODB_URI=mongodb://temporary:27017 -t mongoman .
Environment Variables
Variable | Description | Example |
---|---|---|
MONGODB_URI | MongoDB connection string | mongodb://localhost:27017 |
Verifying Installation
After installation:
- Open your browser and navigate to
http://localhost:3000
- You should see the MongoMan interface
- The dashboard will display your MongoDB connection status