-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (40 loc) · 1.05 KB
/
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
41
42
43
44
45
version: '3'
volumes:
mongo_data:
mongo_backup_data:
services:
blockchain-med-integrity-api:
restart: always
stdin_open: true
tty: true
build: .
command: uvicorn main:app --host 0.0.0.0 --port 7777 --debug --reload
volumes:
- ./api:/api
- ./smart-contracts:/smart-contracts
ports:
- "7777:7777"
depends_on:
- blockchain-med-integrity-db
blockchain-med-integrity-db:
restart: always
image: mongo
command: mongod --port 27019
environment:
MONGO_INITDB_ROOT_USERNAME: "lupin"
MONGO_INITDB_ROOT_PASSWORD: "BNPH.9z5g^8z6Pr4"
volumes:
- mongo_data:/data/db
ports:
- "27019:27019"
blockchain-med-integrity-backup-db:
restart: always
image: mongo
command: mongod --port 27020
environment:
MONGO_INITDB_ROOT_USERNAME: "arsene"
MONGO_INITDB_ROOT_PASSWORD: ".m=w8HAn4@MYKJqy"
volumes:
- mongo_backup_data:/data/backup_db
ports:
- "27020:27020"