You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by gu...@apache.org on 2020/04/29 00:42:08 UTC

[pulsar-manager] branch master updated: Using volumes instead of binding mounts (#295)

This is an automated email from the ASF dual-hosted git repository.

guangning pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-manager.git


The following commit(s) were added to refs/heads/master by this push:
     new dec1923  Using volumes instead of binding mounts (#295)
dec1923 is described below

commit dec19237a138b4e966ac34caa6792723b72a88b2
Author: Mehran Poursadeghi <me...@gmail.com>
AuthorDate: Wed Apr 29 05:11:57 2020 +0430

    Using volumes instead of binding mounts (#295)
    
    ### Motivation
    
    Docker volumes are better than binding mounts.
    
    ### Modifications
    
    Change install through docker docs
    
    ### Verifying this change
    
    - [x] Make sure that the change passes the `./gradlew build` checks.
---
 README.md | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 44931b6..6fadff7 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,8 @@ is able to talk to the brokers and bookies in your Pulsar cluster.
     docker run -d -it \
         -p 6650:6650 \
         -p 8080:8080 \
-        -v $PWD/data:/pulsar/data \
+        -v pulsardata:/pulsar/data \
+        -v pulsarconf:/pulsar/conf \
         --name pulsar-standalone \
         apachepulsar/pulsar:latest \
         bin/pulsar standalone
@@ -48,7 +49,7 @@ is able to talk to the brokers and bookies in your Pulsar cluster.
         -e USERNAME=pulsar \
         -e PASSWORD=pulsar \
         -e LOG_LEVEL=DEBUG \
-        -v $PWD:/data \
+        -v pulsarui:/data \
         --link pulsar-standalone \
         apachepulsar/pulsar-manager:v0.1.0
     ```
@@ -66,7 +67,8 @@ is able to talk to the brokers and bookies in your Pulsar cluster.
     * `PASSWORD`: the password of PostgreSQL.
 
     * `LOG_LEVEL`: level of log.
-
+    
+    * `pulsarui`: docker volume to store PostgresSQL data.
 
 ### Use Docker Compose