Workaround to use mongodb with docker on M1

This commit is contained in:
Diego Mello 2021-06-17 12:49:35 -03:00
parent c744672cbf
commit fece269345
1 changed files with 2 additions and 1 deletions

View File

@ -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