-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (38 loc) · 981 Bytes
/
docker-compose.yml
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
services:
mongodb_dev:
image: mongo:4.0.3
container_name: admin_conseiller_numerique_dev
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
ports:
- target: 27017
published: 27017
volumes:
- type: volume
source: mongodb_data_dev
target: /data/db
- type: volume
source: mongodb_data_config_dev
target: /data/configdb
mongodb_test:
image: mongo:4.0.3
container_name: admin_conseiller_numerique_test
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
ports:
- target: 27017
published: 27018
volumes:
- type: volume
source: mongodb_data_test
target: /data/db
- type: volume
source: mongodb_data_config_test
target: /data/configdb
volumes:
mongodb_data_dev:
mongodb_data_config_dev:
mongodb_data_test:
mongodb_data_config_test: