-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
38 lines (37 loc) · 1004 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
version: "3.8"
services:
mongo:
image: mongo:6
ports:
- 27017:27017
volumes:
- type: bind
source: ./mongo.yml
target: /etc/mongod.conf
- type: volume
source: mongo_volume
target: /data/db
- type: bind
source: ./mongo-init.sh
target: /docker-entrypoint-initdb.d/mongo-init.sh
- type: bind
source: ./data/listingsAndReview.json
target: /data/listingsAndReview.json
- type: bind
source: ./data/sales.json
target: /data/sales.json
- type: bind
source: ./data/accounts.json
target: /data/accounts.json
- type: bind
source: ./data/customers.json
target: /data/customers.json
- type: bind
source: ./data/transactions.json
target: /data/transactions.json
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: test
command: --config /etc/mongod.conf
volumes:
mongo_volume: