Workaround to use mongodb with docker on M1
This commit is contained in:
parent
c744672cbf
commit
fece269345
|
@ -2,12 +2,13 @@ version: '2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mongo:
|
mongo:
|
||||||
image: circleci/mongo:4.0
|
# image: circleci/mongo:4.0
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATAROOT}/data/db:/data/db
|
- ${DATAROOT}/data/db:/data/db
|
||||||
- ${DATAROOT}/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
|
- ${DATAROOT}/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
|
||||||
environment:
|
environment:
|
||||||
- MONGO_INITDB_DATABASE=rocketchat
|
- MONGO_INITDB_DATABASE=rocketchat
|
||||||
|
command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger
|
||||||
|
|
||||||
mongo-init-replica: # No replicas when testing
|
mongo-init-replica: # No replicas when testing
|
||||||
image: tianon/true
|
image: tianon/true
|
||||||
|
|
Loading…
Reference in New Issue