Skip to content

Commit

Permalink
Exposing a common port
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Aug 9, 2023
1 parent 58bbc14 commit f535f0b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Project name
COMPOSE_PROJECT_NAME=fiware
EXPOSED_PORT=1026

# Orion variables
ORION_LD_PORT=1026
Expand All @@ -12,6 +13,8 @@ SCORPIO_VERSION=4.1.1
# Stellio variables
STELLIO_DOCKER_TAG=2.5.2
STELLIO_PORT=8080
STELLIO_TIMESCALE_POSTGIS=14-2.11.1-3.3


# MongoDB variables
MONGO_DB_PORT=27017
Expand Down
2 changes: 1 addition & 1 deletion README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ cd tutorials.Subscriptions
git checkout NGSI-LD

./services create;
./services orion;
./services [orion|scorpio|stellio]
```

このコマンドは、起動時に前のファーム管理情報システムの例からシードデータをインポートし、ファームに一連のダミー
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ cd tutorials.Subscriptions
git checkout NGSI-LD

./services create;
./services orion;
./services [orion|scorpio|stellio]
```

This command will also import seed data from the previous Farm Management Information System example on startup, and
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/orion-ld.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
networks:
- default
ports:
- "${ORION_LD_PORT}:${ORION_LD_PORT}" # localhost:1026
- ${EXPOSED_PORT:-1026}:${ORION_LD_PORT:-1026}
command: -dbhost mongo-db -logLevel DEBUG -forwarding -experimental
healthcheck:
test: curl --fail -s http://orion:${ORION_LD_PORT}/version || exit 1
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/scorpio-aaio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ services:
networks:
- default
ports:
- "${SCORPIO_PORT}:9090"
- ${EXPOSED_PORT:-1026}:${SCORPIO_PORT:-9090}
depends_on:
- postgres
- kafka
Expand Down
5 changes: 3 additions & 2 deletions docker-compose/stellio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
environment:
- SPRING_PROFILES_ACTIVE=docker
ports:
- "${STELLIO_PORT}:8080"
- ${EXPOSED_PORT:-1026}:${STELLIO_PORT:-9090}

search-service:
container_name: stellio-search-service
Expand Down Expand Up @@ -85,7 +85,8 @@ services:
postgres:
labels:
org.fiware: 'tutorial'
image: stellio/stellio-timescale-postgis:14-2.9.1-3.3
image: stellio/stellio-timescale-postgis:${STELLIO_TIMESCALE_POSTGIS}

hostname: postgres
container_name: db-postgres
environment:
Expand Down
5 changes: 4 additions & 1 deletion services
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ case "${command}" in
addDatabaseIndex
waitForOrion
loadData orion:1026
echo -e "\033[1;34m${command}\033[0m is now running and exposed on localhost:${EXPOSED_PORT}"
echo -e "Now open \033[4mhttp://localhost:3000/app/monitor\033[0m"
;;
"scorpio")
Expand All @@ -270,6 +271,7 @@ case "${command}" in
addDatabaseIndex
waitForScorpio
loadData scorpio:9090
echo -e "\033[1;34m${command}\033[0m is now running and exposed on localhost:${EXPOSED_PORT}"
echo -e "Now open \033[4mhttp://localhost:3000/app/monitor\033[0m"
;;
"stellio")
Expand All @@ -288,6 +290,7 @@ case "${command}" in
addDatabaseIndex
waitForStellio
loadData stellio:8080
echo -e "\033[1;34m${command}\033[0m is now running and exposed on localhost:${EXPOSED_PORT}"
echo -e "Now open \033[4mhttp://localhost:3000/app/monitor\033[0m"
;;
"stop")
Expand All @@ -296,7 +299,7 @@ case "${command}" in
;;
"start")
export $(cat .env | grep "#" -v)
./services orion $2
./services ${CONTEXT_BROKER:=orion} $2
;;
"create")
export $(cat .env | grep "#" -v)
Expand Down

0 comments on commit f535f0b

Please sign in to comment.