From 6a75eb893c1362650783ab21d0b63fe8b74749c9 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 4 Jul 2019 10:41:32 +0200 Subject: [PATCH] misc: add stop command --- manage.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/manage.sh b/manage.sh index acf5c02c4c..2ed2fdb5e6 100755 --- a/manage.sh +++ b/manage.sh @@ -179,7 +179,12 @@ function run { fi echo "Running production images..." - sudo docker-compose -p uxbox-release -f ./docker/docker-compose.yml up -d + sudo docker-compose -p uxbox -f ./docker/docker-compose.yml up -d +} + +function stop { + echo "Stoping containers..." + sudo docker-compose -p uxbox -f ./docker/docker-compose.yml stop -d } function usage { @@ -196,7 +201,8 @@ function usage { echo "- build-develop-frontend-image Build a 'develop' docker images for frontend only" echo "- build-release-frontend-image Build a 'production ready' docker images for frontend only" echo "- build-release-backend-image Build a 'production ready' docker images for backend only" - echo "- run Run 'production ready' docker images for both backend and frontend using docker compose" + echo "- run Run 'production ready' docker compose" + echo "- stop Stop 'production ready' docker compose" } case $1 in @@ -232,9 +238,13 @@ case $1 in build-release-backend-image) build-release-backend-image ;; + run) run ;; + stop) + stop + ;; *) usage