diff options
author | startxfr <clarue@startx.fr> | 2014-12-08 23:49:15 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2014-12-08 23:49:15 +0100 |
commit | 76fbe43a8e1cb13cfe4a24bb78ac510a13c85651 (patch) | |
tree | 14c8aac5aa405791025ae12ae9553ebe299bef8e /Services/mongo | |
parent | ef2c1df934ee7720fd1ccacae042f3deb3b7628d (diff) | |
download | phpmyadmin-76fbe43a8e1cb13cfe4a24bb78ac510a13c85651.tar.gz phpmyadmin-76fbe43a8e1cb13cfe4a24bb78ac510a13c85651.tar.bz2 phpmyadmin-76fbe43a8e1cb13cfe4a24bb78ac510a13c85651.tar.xz phpmyadmin-76fbe43a8e1cb13cfe4a24bb78ac510a13c85651.zip |
adding example for using volumes
Diffstat (limited to 'Services/mongo')
-rw-r--r-- | Services/mongo/README.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Services/mongo/README.md b/Services/mongo/README.md index aa23252..dcdc1cc 100644 --- a/Services/mongo/README.md +++ b/Services/mongo/README.md @@ -4,9 +4,12 @@ This container run mongod on fedora server. ## Running from docker registry docker run -d -p 27017:27017 --name="mongo" startx/sv-mongo + # when used with a volume container (run data container, then run service) + docker run -d -v /var/lib/mongodb -v /var/log/mongodb --name mongo-data startx/sv-mongo echo "Data container for mongodb" + docker run -d -p 27017:27017 --volumes-from mongo-data --name="mongo" startx/sv-mongo when linked to another container docker run -d --name="mongo" startx/sv-mongo - docker run -d --name="php" --link mongo:mongo startx/sv-php + docker run -d -p 80:80 --name="php" --link mongo:mongo startx/sv-php ## Build and run from local Dockerfile ### Building docker image |