Skip to content

Commit 8ce9f17

Browse files
committed
Upgrade to use the Docker Engine compose command
1 parent 02305b2 commit 8ce9f17

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

services

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ displayServices () {
3535
startContainers () {
3636
echo ""
3737
export IDM_HTTPS_ENABLED="$1"
38-
docker-compose --log-level ERROR -p fiware up -d --remove-orphans
38+
docker compose -p fiware up -d --remove-orphans
3939
echo ""
4040
}
4141

4242
stoppingContainers () {
43-
echo "Stopping containers"
44-
docker-compose --log-level ERROR -p fiware down -v --remove-orphans
43+
echo "Stopping running containers"
44+
docker compose -p fiware down -v --remove-orphans
4545
}
4646

4747
command="$1"
@@ -52,7 +52,7 @@ case "${command}" in
5252
"start")
5353
export $(cat .env | grep "#" -v)
5454
stoppingContainers
55-
echo -e "Starting three containers \033[1;31mKeyrock\033[0m, \033[1mTutorial\033[0m and and \033[1mMySQL\033[0m databases."
55+
echo -e "Starting containers: \033[1;31mKeyrock\033[0m, \033[1mTutorial\033[0m and and \033[1mMySQL\033[0m databases."
5656
echo -e "- \033[1mTutorial\033[0m acts as a series of dummy IoT Sensors over HTTP"
5757
echo -e "- \033[1;31mKeyrock\033[0m is an Identity Management Front-End"
5858
startContainers false
@@ -68,7 +68,7 @@ case "${command}" in
6868
export $(cat .env | grep "#" -v)
6969
echo "Pulling Docker images"
7070
docker pull curlimages/curl
71-
docker-compose --log-level ERROR -p fiware pull
71+
docker compose -p fiware pull
7272
;;
7373
*)
7474
echo "Command not Found."

0 commit comments

Comments
 (0)