
vepo/mongoA docker image for Mongo where the authentication can be easily configured.
Here I describe the environment variables that you can use
With Dockerfile
# Auth Configuration. # These environment variables can also be specified through command line or docker-compose configuration # ENV AUTH yes # ENV ADMIN_USER root # ENV ADMIN_PASS password # ENV APPLICATION_DATABASE your_db # ENV APPLICATION_USER user # ENV APPLICATION_PASS password
With docker-compose.yml
services: db: image: vepo/mongo environment: - AUTH=yes - ADMIN_USER=admin - ADMIN_PASS=admin123 - APPLICATION_DATABASE=sample - APPLICATION_USER=aashrey - APPLICATION_PASS=admin123 ports: - "27017:27017" // more configuration
With command line
docker run -it \ -e AUTH=yes \ -e ADMIN_USER=admin \ -e ADMIN_PASS=adminpass \ -e APPLICATION_DATABASE=mytestdatabase \ -e APPLICATION_USER=testuser \ -e APPLICATION_PASS=testpass \ -p 27017:27017 vepo/mongo
This image is based on [***]


manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务