Sign inSign up

jeurboy/docker-phpmongoadmin

By jeurboy

•Updated about 11 years ago

Web admin tool for MongoDB. No DB build in. Support external Mongo Docker

Image
0

539

jeurboy/docker-phpmongoadmin repository overview

⁠Building form the base image and Docker file

To create the base image jeurboy/docker-phpmongodb we need to pull all the code from github.

And then we will use this command to build image from Dockerfile.

  • docker build -t jeurboy/docker-phpmongodb .

⁠To start a service from image

We use follow command to start the images. we use -d for start as a daemon and use -e to pass an environment parameter to an image.

  • docker run -p 80:80 -d -it -e MONGO_SERVER=192.168.99.100 -e MONGO_PORT=27017 jeurboy/docker-phpmongodb

Here is available parameter with default value.

Parameterdefault valueremark
MONGO_ADMIN_USERNAMEadminAdmin user for phpmongo
MONGO_ADMIN_PASSWORDpasswordAdmin password for phpmongo
MONGO_SERVERlocalhostMongo server IP address
MONGO_PORT27017Mongo server port
MONGO_USERNAMEadminMongo server's user
MONGO_PASSWORDpasswordMongo server's password

Test your deployment by :

curl http://localhost/⁠

⁠PS Compatible with Mongo <=2.6

Tag summary

Content type

Image

Digest

sha256:3bbee2c16…

Size

141.4 MB

Last updated

about 11 years ago

docker pull jeurboy/docker-phpmongoadmin