mongo_dev.yml 672 Bytes
Newer Older
cazenave's avatar
cazenave committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
version: '3'

services:
  mongo-dev:
    image: mongo:4.0.6
    container_name: vitamui-mongo
    hostname: vitamui-mongo
#    environment:
        # provide your credentials here
#        - MONGO_INITDB_ROOT_USERNAME=root
#        - MONGO_INITDB_ROOT_PASSWORD=rootpwd
    ports:
        # 27018 is selected in order to avoid a conflict with Vitam docker instance
      - "27018:27018"
    volumes:
      - "$PWD/mongo-entrypoint/:/vitamui/scripts/mongo/data"
      - "$PWD/replica-set/:/vitamui/scripts/mongo/replica-set"

19

cazenave's avatar
cazenave committed
20
21
    # no --auth is needed here as presence of username and password add this option automatically
    command: mongod --replSet "rs0" --port=27018