Mongo Express
Mongo Express is a Web-based MongoDB admin interface, written with Node.js and express!
You can easily deploy mongo express using their official docker image:
Copy past the previous content and save it under a file called mongo-express.yml
.
Then execute the following command to startup a [mongo express][mongo-express] server:
nanocl state apply -s mongo-express.yml
If you are using Nanocl
on your local computer, edit your /etc/hosts
to add this line:
127.0.0.1 mongo-express.internal
You should be able to see the following page:
Optionally you can choose the domain name using this command:
nanocl state apply -s mongo-express.yml -- --domain my-domain.com
For production, we recommand you to deploy it inside a vpn follow our vpn guide.
And rerun the previos command with the network of your vpn, if you didn't took something fancy it should be:
nanocl state apply -s mongo-express.yml -- --network private.nsp
This way mongo express will only be accessible over the vpn!