Skip to content

Commit 5d6673a

Browse files
committed
Update to MongoDB 6.0
1 parent 5f66e4a commit 5d6673a

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ STELLIO_TIMESCALE_POSTGIS=16-2.16.0-3.3
1717

1818
# MongoDB variables
1919
MONGO_DB_PORT=27017
20-
MONGO_DB_VERSION=4.4
20+
MONGO_DB_VERSION=6.0
2121

2222
# Tutorial variables
2323
TUTORIAL_APP_PORT=3000

docker-compose/common.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ services:
3535
healthcheck:
3636
test: (wget --server-response --spider --quiet http://context/ngsi-context.jsonld 2>&1 | awk 'NR==1{print $$2}'| grep -q -e "200") || exit 1
3737

38+
# Databases
3839
# Databases
3940
mongo-db:
4041
labels:
@@ -48,13 +49,11 @@ services:
4849
- "${MONGO_DB_PORT}:${MONGO_DB_PORT}" # localhost:27017
4950
networks:
5051
- default
51-
command: --nojournal
5252
volumes:
53-
- mongo-db:/data
53+
- mongo-db:/data/db
54+
- mongo-config:/data/configdb
5455
healthcheck:
55-
test: |
56-
host=`hostname --ip-address || echo '127.0.0.1'`;
57-
mongo --quiet $host/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 2)' && echo 0 || echo 1
56+
test: ["CMD","mongosh", "localhost:27017/test", "--quiet"]
5857
interval: 5s
5958

6059

@@ -104,6 +103,7 @@ networks:
104103

105104
volumes:
106105
mongo-db: ~
106+
mongo-config: ~
107107
data-models:
108108
driver: local
109109
driver_opts:

docker-compose/orion-ld.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ services:
2121
orion-ld:
2222
labels:
2323
org.fiware: 'tutorial'
24+
platform: linux/amd64
2425
image: quay.io/fiware/orion-ld:${ORION_LD_VERSION}
2526
hostname: orion
2627
container_name: fiware-orion-ld
@@ -29,11 +30,12 @@ services:
2930
networks:
3031
- default
3132
ports:
32-
- "${EXPOSED_PORT}:${ORION_LD_PORT}" # localhost:1026
33-
command: -dbhost mongo-db -logLevel DEBUG -experimental
33+
- ${EXPOSED_PORT:-1026}:${ORION_LD_PORT:-1026} # localhost:1026
34+
command: -dbhost mongo-db -logLevel DEBUG -forwarding -mongocOnly
3435
healthcheck:
3536
test: curl --fail -s http://orion:${ORION_LD_PORT}/version || exit 1
3637
interval: 5s
38+
3739

3840

3941
# Tutorial acts as a series of dummy IoT Sensors over HTTP and connects to the Orion-LD Broker

docker-compose/stellio.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
environment:
2727
- SPRING_PROFILES_ACTIVE=docker
2828
ports:
29-
- "${STELLIO_PORT}:8080"
29+
- "${EXPOSED_PORT}:${STELLIO_PORT}"
3030
networks:
3131
- default
3232

0 commit comments

Comments
 (0)