-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
41 lines (40 loc) · 1.03 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
version: '2'
services:
api:
build:
context: .
dockerfile: ./compose/api/Dockerfile
volumes:
- ./docs:/usr/src/app/docs
- ./tests:/usr/src/app/tests
- ./web:/usr/src/app/web
- ./setup.py:/usr/src/app/setup.py
env_file:
- .env
environment:
API_HOST: api
BDB_NODE_HOST: bigchaindb
BDB_NODE_PORT: 9984
ports:
- "${API_PORT}:3000"
command: python web/server.py
mdb:
image: mongo:3.4.3
ports:
- "27017"
command: mongod --replSet=bigchain-rs
bigchaindb:
build: ./compose/bigchaindb
env_file:
- .env
environment:
BIGCHAINDB_DATABASE_BACKEND: mongodb
BIGCHAINDB_DATABASE_HOST: mdb
BIGCHAINDB_DATABASE_PORT: 27017
BIGCHAINDB_SERVER_BIND: 0.0.0.0:9984
BIGCHAINDB_WSSERVER_HOST: 0.0.0.0
BIGCHAINDB_KEYPAIR_PUBLIC: GW1nrdZm4mbVC8ePeiGWz6DqHexqewqy5teURVHi3RG4
BIGCHAINDB_KEYPAIR_PRIVATE: 2kQgBtQnHoauw8QchKM7xYvEBW1QDoHzhBsCL9Vi1AzB
ports:
- "9984"
command: bigchaindb start