ソースを参照

Don't use docker-compose down to stop containers

This delete containers and volume too. 
Use docker-compose stop who only stop containers
Caule Simon 7 年 前
コミット
59dff53176
1 ファイル変更2 行追加2 行削除
  1. 2 2
      sync.sh

+ 2 - 2
sync.sh

@@ -63,7 +63,7 @@ if [ "$1" == "up" ] ; then
 
 elif [ "$1" == "down" ]; then
     print_style "Stopping Docker Compose\n" "info"
-    docker-compose down
+    docker-compose stop
 
     print_style "Stopping Docker Sync\n" "info"
     docker-sync stop
@@ -86,4 +86,4 @@ else
     print_style "Invalid arguments.\n" "danger"
     display_options
     exit 1
-fi
+fi