Skip to content

Commit a3d603e

Browse files
committed
Move project name to env
1 parent 166be49 commit a3d603e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Project name
2+
COMPOSE_PROJECT_NAME=fiware
3+
14
# Orion variables
25
ORION_PORT=1026
36
ORION_VERSION=3.1.0

services

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ loadData () {
2323

2424
stoppingContainers () {
2525
echo "Stopping running containers"
26-
docker compose -p fiware down -v --remove-orphans
26+
docker-compose down -v --remove-orphans
2727
}
2828

2929
displayServices () {
@@ -107,7 +107,7 @@ case "${command}" in
107107
echo -e "- \033[1;36mIoT-Agent\033[0m is configured for the UltraLight Protocol"
108108
echo -e "- \033[1;30mTutorial\033[0m acts as a series of dummy IoT Sensors over HTTP"
109109
echo ""
110-
docker compose -p fiware up -d --remove-orphans
110+
docker-compose up -d --remove-orphans
111111
waitForMongo
112112
addDatabaseIndex
113113
waitForOrion
@@ -123,7 +123,7 @@ case "${command}" in
123123
export $(cat .env | grep "#" -v)
124124
echo "Pulling Docker images"
125125
docker pull curlimages/curl
126-
docker compose -p fiware pull
126+
docker-compose pull
127127
;;
128128
*)
129129
echo "Command not Found."

0 commit comments

Comments
 (0)