瀏覽代碼

multi-process docker image: advice the usage of volumes/linked database container

Dominik Sander 9 年之前
父節點
當前提交
8a7a3c1e4b
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      docker/multi-process/README.md

+ 8 - 2
docker/multi-process/README.md

@@ -23,7 +23,9 @@ and
 Its recommended to use an image that allows you to create a database via environmental variables at docker run, like `paintedfox / postgresql` or `centurylink / mysql`, so the db is populated when this script runs.
 
 If you do not link a database container, a built-in mysql database will be started.
-There is an exported docker volume of /var/lib/mysql to allow persistence of that mysql database.
+There is an exported docker volume of `/var/lib/mysql` to allow persistence of that mysql database.
+
+__NOTE:__ If you do not export the volme, or use a linked database container, you cannot update Huginn without losing your data.
 
 Additionally, the database variables may be overridden from the above as per the standard Huginn documentation:
 
@@ -45,10 +47,14 @@ The CMD launches Huginn via the scripts/init script. This may become the ENTRYPO
 
 ## Usage
 
-Simple stand-alone usage:
+Simple stand-alone usage (use only for testing/evaluation as it can not be updated without losing data):
 
     docker run -it -p 3000:3000 cantino/huginn
 
+Use a volume to export the data of the internal mysql server:
+
+    docker run -it -p 3000:3000 -v /home/huginn/mysql-data:/var/lib/mysql cantino/huginn
+
 To link to another mysql container, for example:
 
     docker run --rm --name huginn_mysql \