Skip to content

Commit

Permalink
Update Orion and MongoDB
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Jan 29, 2024
1 parent 8a27fdd commit d0e0198
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ COMPOSE_PROJECT_NAME=fiware

# Orion variables
ORION_PORT=1026
ORION_VERSION=3.10.1
ORION_VERSION=3.11.0

# MongoDB variables
MONGO_DB_PORT=27017
MONGO_DB_VERSION=4.4
MONGO_DB_VERSION=6.0

# Tutorial variables
TUTORIAL_APP_PORT=3000
Expand Down
11 changes: 6 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#
version: "3.8"
services:
# Orion is the context broker
orion:
# Orion is an NGSI-v2 context broker
orion-v2:
labels:
org.fiware: 'tutorial'
image: quay.io/fiware/orion:${ORION_VERSION}
Expand Down Expand Up @@ -86,10 +86,11 @@ services:
volumes:
- mongo-db:/data
healthcheck:
test: |
host=`hostname --ip-address || echo '127.0.0.1'`;
mongo --quiet $host/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 2)' && echo 0 || echo 1
test: ["CMD","mongosh", "--eval", "db.adminCommand('ping')"]
interval: 5s
timeout: 5s
retries: 3
start_period: 5s

networks:
default:
Expand Down

0 comments on commit d0e0198

Please sign in to comment.