Skip to content

Commit

Permalink
feat: use official mongo image for arm64 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
dwinston committed Jul 18, 2023
1 parent ac9215c commit 4b6f19c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
22 changes: 15 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,24 @@ services:
- .:/code

mongo:
image: bitnami/mongodb:6.0.4
image: mongo:6.0.4
container_name: mongo
ports:
- "27018:27017"
volumes:
- nmdc_runtime_mongo_data:/data/db
- ./tests:/app_tests
secrets:
- mongoKeyFile
restart: unless-stopped
command: ["--replSet", "dbrs", "--bind_ip_all", "--keyFile", "/run/secrets/mongoKeyFile"]
healthcheck:
test: test $$(echo "rs.initiate({_id:'dbrs',members:[{_id:0,host:\"mongo\"}]}).ok || rs.status().ok" | mongo --quiet) -eq 1
interval: 10s
start_period: 30s
environment:
MONGODB_ROOT_USER: admin
MONGODB_ROOT_PASSWORD: root
MONGODB_REPLICA_SET_MODE: primary
MONGODB_ADVERTISED_HOSTNAME: mongodb-primary
MONGODB_REPLICA_SET_KEY: replicasetkey123
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: root

terminus:
image: terminusdb/terminusdb-server:v11.0.6
Expand All @@ -111,4 +115,8 @@ volumes:
nmdc_runtime_mongo_data:
driver: local
nmdc_runtime_terminus_data:
driver: local
driver: local

secrets:
mongoKeyFile:
file: ./mongoKeyFile
1 change: 1 addition & 0 deletions mongoKeyFile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mysecretkey

0 comments on commit 4b6f19c

Please sign in to comment.