Skip to content

Commit 1f1ee0f

Browse files
committed
Update to MongoDB 6.0
1 parent 0b303a4 commit 1f1ee0f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.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: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ services:
4848
- "${MONGO_DB_PORT}:${MONGO_DB_PORT}" # localhost:27017
4949
networks:
5050
- default
51-
command: --nojournal
5251
volumes:
53-
- mongo-db:/data
52+
- mongo-db:/data/db
53+
- mongo-config:/data/configdb
5454
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
55+
test: ["CMD","mongosh", "localhost:27017/test", "--quiet"]
5856
interval: 5s
5957

6058

@@ -104,6 +102,7 @@ networks:
104102

105103
volumes:
106104
mongo-db: ~
105+
mongo-config: ~
107106
data-models:
108107
driver: local
109108
driver_opts:

docker-compose/orion-ld.yml

Lines changed: 3 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,8 +30,8 @@ services:
2930
networks:
3031
- default
3132
ports:
32-
- "${EXPOSED_PORT}:${ORION_LD_PORT}" # localhost:1026
33-
command: -dbhost mongo-db -logLevel DEBUG -forwarding -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

0 commit comments

Comments
 (0)