Skip to content

Commit 135f71e

Browse files
committed
Upgrade to use the Docker Engine compose command
1 parent 5b4ead4 commit 135f71e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

services

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ fi
1515

1616

1717
stoppingContainers () {
18-
echo "Stopping containers"
19-
docker-compose --log-level ERROR -p fiware down -v --remove-orphans
18+
echo "Stopping running containers"
19+
docker compose -p fiware down -v --remove-orphans
2020
}
2121

2222
displayServices () {
@@ -34,9 +34,9 @@ case "${command}" in
3434
;;
3535
"start")
3636
stoppingContainers
37-
echo -e "Starting eight containers including \033[1;35mFogFlow\033[0m, an \033[1mNGINX\033[0m instance, and \033[1mRabbitMQ\033[0m message broker."
37+
echo -e "Starting containers: including \033[1;35mFogFlow\033[0m, an \033[1mNGINX\033[0m instance, and \033[1mRabbitMQ\033[0m message broker."
3838
echo ""
39-
docker-compose --log-level ERROR -p fiware up -d --remove-orphans
39+
docker compose -p fiware up -d --remove-orphans
4040
displayServices
4141
;;
4242
"stop")
@@ -47,7 +47,7 @@ case "${command}" in
4747
export $(cat .env | grep "#" -v)
4848
echo "Pulling Docker images"
4949
docker pull curlimages/curl
50-
docker-compose --log-level ERROR -p fiware pull
50+
docker compose -p fiware pull
5151
;;
5252
*)
5353
echo "Command not Found."

0 commit comments

Comments
 (0)