-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmongo_dev.yml
More file actions
42 lines (38 loc) · 1.32 KB
/
mongo_dev.yml
File metadata and controls
42 lines (38 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: "3.5"
services:
mongo-dev:
image: mongo:7.0.28
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:
# if you wish to setup additional user accounts specific per DB or with different roles you can use following entry point
- "$PWD/mongo-entrypoint:/scripts/mongo/data"
- "$PWD/replica-set/:/scripts/mongo/replica-set"
networks:
- local_vitamui_network
# no --auth is needed here as presence of username and password add this option automatically
command: mongod --replSet "rs0" --port=27018
mongo-express-dev:
container_name: vitamui-mongo-express
image: mongo-express
restart: unless-stopped
ports:
- "18081:8081"
depends_on:
- mongo-dev
networks:
- local_vitamui_network
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: mongod_dbuser_admin
ME_CONFIG_MONGODB_ADMINPASSWORD: mongod_dbpwd_admin
ME_CONFIG_MONGODB_URL: "mongodb://mongod_dbuser_admin:mongod_dbpwd_admin@mongo-dev:27018/"
networks:
local_vitamui_network:
name: mongo_default