Self-host Mongo Express with Levelrail
A web admin console for MongoDB, bundled with its own MongoDB 7 instance and basic auth.
- Authormongo-express
- LicenceMIT
- Memory512 MiB
- Archarm64
- Services2
How to self-host Mongo Express
-
Pull the images
2 images are pulled on your server.
Show images
mongo:7mongo-express:1.0.2-20-alpine3.19
-
Create the app
2 services start in a single Compose app, with 1 named volume mount for your data, on port 8081.
-
Fill in the secrets
4 secrets are generated and stored encrypted, 2 settings are preset, you do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
Mongo Express requirements
- Memory
- About 512 MiB
- Architectures
- amd64 image published, arm64 image published
- Ports
- 8081
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- MIT, permissive license
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Mongo Express. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the Mongo Express docs page.
Deploy Mongo Express your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy Mongo Express from the CLI
levelrail-cli templates deploy mongo-express --name my-mongo-express Deploy Mongo Express with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/mongo-express/deploy Mongo Express configuration
Mongo Express services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| mongo | mongo:7 | none | mongo_data -> /data/db |
| mongo-express | mongo-express:1.0.2-20-alpine3.19 | 8081 | none |
Mongo Express environment variables
| Variable | Service | Value |
|---|---|---|
| MONGO_INITDB_ROOT_PASSWORD | mongo | Generated at deploy |
| MONGO_INITDB_ROOT_USERNAME | mongo | Preset by the template |
| ME_CONFIG_BASICAUTH_PASSWORD | mongo-express | Generated at deploy |
| ME_CONFIG_BASICAUTH_USERNAME | mongo-express | Generated at deploy |
| ME_CONFIG_MONGODB_ENABLE_ADMIN | mongo-express | Preset by the template |
| ME_CONFIG_MONGODB_URL | mongo-express | Generated at deploy |
Ports and volumes
- Ports
- 8081
- Volumes
- 1 named mount: mongo_data -> /data/db
Mongo Express FAQ
How much memory does Mongo Express need?
The catalog lists about 512 MiB of memory for Mongo Express across its 2 services.
Does Mongo Express run on arm64?
For Mongo Express, an arm64 image is published; amd64 is image published.
What licence is Mongo Express under?
Mongo Express is licensed under MIT, which is permissive, with few conditions on reuse.
Does Mongo Express need configuration before it starts?
No. The template fills in its own defaults and generates secrets at deploy time.
Which database does Mongo Express bundle?
The template includes MongoDB, running as its own service.
Which ports does Mongo Express use?
Mongo Express listens on port 8081 inside the stack.
Where does Mongo Express keep its data?
In a named volume: mongo_data mounted at /data/db.
Can I deploy Mongo Express on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Mongo Express, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image mongo:7, mongo-express:1.0.2-20-alpine3.19 is what you deploy there.