#!/bin/bash #exec 0out.log #exec 2>logs/error.log root_folder=`pwd` menu=" [1] up dev reverse [2] restart dev reverse [3] down dev reverse [4] ps dev reverse " input="" while true do echo "$menu" echo -n "Select function № on enter q to exit:\n" read input if [ $input = "q" ] then break; fi case "$input" in 1) docker compose -f docker-compose-devserver.yaml -f docker-compose.limits.yaml up -d;break ;; 2) docker compose -f docker-compose-devserver.yaml -f docker-compose.limits.yaml down && \ docker compose -f docker-compose-devserver.yaml -f docker-compose.limits.yaml up -d;break ;; 3) docker compose -f docker-compose-devserver.yaml -f docker-compose.limits.yaml down;break ;; 4) docker compose -f docker-compose-devserver.yaml -f docker-compose.limits.yaml ps;break ;; *) echo "key not found" esac done echo "end of the script"