Sign inSign up

liuyuqi/alpine-mongo

By liuyuqi

•Updated over 8 years ago

A minimal mongodb image based on alpine. Its size is only 142 MB. To run mongo in '--auth' mode.

Image
0

218

liuyuqi/alpine-mongo repository overview

⁠liuyuqi/alpine-mongo

A minimal mongodb image based on alpine. Its size is only 142 MB. The default behavior is to run mongo in '--auth' mode.

⁠Install

To download this image from the public docker hub:

$ docker pull liuyuqi/alpine-mongo

To re-build this image from the dockerfile:

$ docker build --tag liuyuqi/alpine-mongo .

⁠Usage

Make sure the host has /var. And add MONGO_USERNAME态MONGO_PASSWORD to ENV.

$ docker run -d -e "MONGO_USERNAME=your-username" -e "MONGO_PASSWORD=your-password" -v /var:/var -p 27017:27017 liuyuqi/alpine-mongo

Tag summary

Content type

Image

Digest

Size

63 MB

Last updated

over 8 years ago

docker pull liuyuqi/alpine-mongo