Skip to content

Commit 78d2162

Browse files
committed
Move project name to env
1 parent 8faeca4 commit 78d2162

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ loadData () {
3535

3636
stoppingContainers () {
3737
echo "Stopping running containers"
38-
docker compose -f docker-compose/cygnus-sth-comet.yml -p fiware down -v --remove-orphans
38+
docker-compose -f docker-compose/cygnus-sth-comet.yml down -v --remove-orphans
3939
}
4040

4141
displayServices () {
@@ -118,7 +118,7 @@ case "${command}" in
118118
echo -e "- \033[1;36mIoT-Agent\033[0m is configured for the UltraLight Protocol"
119119
echo -e "- \033[1mTutorial\033[0m acts as a series of dummy IoT Sensors over HTTP"
120120
echo ""
121-
docker compose -f docker-compose/sth-comet.yml -p fiware up -d --remove-orphans
121+
docker-compose -f docker-compose/sth-comet.yml up -d --remove-orphans
122122
loadData
123123
displayServices
124124
echo -e "Now open \033[4mhttp://localhost:3000/device/monitor\033[0m"
@@ -132,7 +132,7 @@ case "${command}" in
132132
echo -e "- \033[1;36mIoT-Agent\033[0m is configured for the UltraLight Protocol"
133133
echo -e "- \033[1mTutorial\033[0m acts as a series of dummy IoT Sensors"
134134
echo ""
135-
docker compose -f docker-compose/cygnus-sth-comet.yml -p fiware up -d --remove-orphans
135+
docker-compose -f docker-compose/cygnus-sth-comet.yml up -d --remove-orphans
136136
loadData
137137
displayServices
138138
echo -e "Now open \033[4mhttp://localhost:3000/device/monitor\033[0m"
@@ -149,7 +149,7 @@ case "${command}" in
149149
export $(cat .env | grep "#" -v)
150150
echo "Pulling Docker images"
151151
docker pull curlimages/curl
152-
docker compose -f docker-compose/cygnus-sth-comet.yml -p fiware pull
152+
docker-compose -f docker-compose/cygnus-sth-comet.yml pull
153153
;;
154154
*)
155155
echo "Command not Found."

0 commit comments

Comments
 (0)