Skip to content

Commit

Permalink
Merge pull request #133 from atlanticwave-sdx/132.update-mongodb
Browse files Browse the repository at this point in the history
Use MongoDB 7.0.11
  • Loading branch information
sajith authored May 31, 2024
2 parents df55fcc + b5d5eaa commit 266e0e0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- 5672:5672
- 15672:15672
mongodb:
image: mongo:3.7
image: mongo:7.0.11
env:
MONGO_INITDB_ROOT_USERNAME: guest
MONGO_INITDB_ROOT_PASSWORD: guest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $ docker run -it --rm --name mongo \
-p 27017:27017 \
-e MONGO_INITDB_ROOT_USERNAME=guest \
-e MONGO_INITDB_ROOT_PASSWORD=guest \
mongo:7.0.5
mongo:7.0.11
```

Now create a virtual environment, and install the server:
Expand Down
10 changes: 6 additions & 4 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
services:

mongodb:
image: mongo:7.0.5
image: mongo:7.0.11
expose:
- ${MONGO_PORT}
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
Expand All @@ -16,7 +18,7 @@ services:
source: mongodb
target: /data/db:Z
healthcheck:
test: ["CMD", "mongosh", "localhost:27017/test", "--quiet"]
test: ["CMD", "mongosh", "localhost:${MONGO_PORT}/test", "--quiet"]

sdx-lc:
image: sdx-lc
Expand All @@ -26,7 +28,7 @@ services:
- 8080:8080
depends_on:
mongodb:
# Anther condition is `service_healthy`, and it will require
# Another condition is `service_healthy`, and it will require
# the `healthcheck` above.
condition: service_started
environment:
Expand All @@ -36,7 +38,7 @@ services:
- SDXLC_PORT=${SDXLC_PORT}
# MongoDB settings. When using compose, we connect to the
# mongodb service started by compose.
- MONGODB_CONNSTRING=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongodb:27017/
- MONGODB_CONNSTRING=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongodb:${MONGO_PORT}/
- DB_NAME=${DB_NAME}
- DB_CONFIG_TABLE_NAME=${DB_CONFIG_TABLE_NAME}
# Message queue settings.
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ports =
healthcheck_cmd = rabbitmq-diagnostics -q ping

[docker:mongo]
image = mongo:7.0.5
image = mongo:7.0.11

ports =
27017:27017/tcp
Expand Down

0 comments on commit 266e0e0

Please sign in to comment.