This repository has been archived by the owner on Dec 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.platform.yml
123 lines (116 loc) · 4.63 KB
/
docker-compose.platform.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: '3.7'
services:
drive_mongodb:
image: ${PLATFORM_DRIVE_MONGODB_DOCKER_IMAGE:?err}
restart: unless-stopped
volumes:
- drive_mongodb_data:/data/db
- ./docker/mongodb/initiate_mongodb_replica.js:/docker-entrypoint-initdb.d/initiate_mongodb_replica.js
extra_hosts:
- "drive_mongodb:127.0.0.1"
command: mongod --replSet driveDocumentIndices --bind_ip_all
drive_abci:
image: ${PLATFORM_DRIVE_ABCI_DOCKER_IMAGE:?err}
restart: unless-stopped
depends_on:
- drive_mongodb
- core
volumes:
- drive_abci_data:/usr/src/app/db
- ${PLATFORM_DRIVE_ABCI_LOG_PRETTY_FILE_PATH:?err}:/var/log/drive-pretty.log
- ${PLATFORM_DRIVE_ABCI_LOG_JSON_FILE_PATH:?err}:/var/log/drive-json.log
environment:
- CORE_JSON_RPC_USERNAME=${CORE_RPC_USER:?err}
- CORE_JSON_RPC_PASSWORD=${CORE_RPC_PASSWORD:?err}
- CORE_JSON_RPC_HOST=core
- CORE_JSON_RPC_PORT=${CORE_RPC_PORT:?err}
- CORE_ZMQ_HOST=core
- CORE_ZMQ_PORT=29998
- DOCUMENT_MONGODB_URL=mongodb://drive_mongodb:27017?replicaSet=driveDocumentIndices
- DPNS_CONTRACT_ID=${PLATFORM_DPNS_CONTRACT_ID}
- DPNS_CONTRACT_BLOCK_HEIGHT=${PLATFORM_DPNS_CONTRACT_BLOCK_HEIGHT}
- DPNS_TOP_LEVEL_IDENTITY=${PLATFORM_DPNS_OWNER_ID}
- DASHPAY_CONTRACT_ID=${PLATFORM_DASHPAY_CONTRACT_ID}
- DASHPAY_CONTRACT_BLOCK_HEIGHT=${PLATFORM_DASHPAY_CONTRACT_BLOCK_HEIGHT}
- FEATURE_FLAGS_CONTRACT_ID=${PLATFORM_FEATURE_FLAGS_CONTRACT_ID}
- FEATURE_FLAGS_CONTRACT_BLOCK_HEIGHT=${PLATFORM_FEATURE_FLAGS_CONTRACT_BLOCK_HEIGHT}
- FEATURE_FLAGS_TOP_LEVEL_IDENTITY=${PLATFORM_FEATURE_FLAGS_OWNER_ID}
- NODE_ENV=${ENVIRONMENT:?err}
- LOG_STDOUT_LEVEL=${PLATFORM_DRIVE_ABCI_LOG_STDOUT_LEVEL:?err}
- LOG_PRETTY_FILE_LEVEL=${PLATFORM_DRIVE_ABCI_LOG_PRETTY_FILE_LEVEL:?err}
- LOG_PRETTY_FILE_PATH=/var/log/drive-pretty.log
- LOG_JSON_FILE_LEVEL=${PLATFORM_DRIVE_ABCI_LOG_JSON_FILE_LEVEL:?err}
- LOG_JSON_FILE_PATH=/var/log/drive-json.log
- INITIAL_CORE_CHAINLOCKED_HEIGHT=${PLATFORM_DRIVE_TENDERDASH_GENESIS_INITIAL_CORE_CHAIN_LOCKED_HEIGHT:-1}
- VALIDATOR_SET_LLMQ_TYPE=${PLATFORM_DRIVE_ABCI_VALIDATOR_SET_LLMQ_TYPE:?err}
- NETWORK=${NETWORK}
command: npm run abci
drive_tenderdash:
image: ${PLATFORM_DRIVE_TENDERDASH_DOCKER_IMAGE:?err}
restart: unless-stopped
depends_on:
- drive_abci
ports:
- ${PLATFORM_DRIVE_TENDERDASH_P2P_PORT:?err}:${PLATFORM_DRIVE_TENDERDASH_P2P_PORT:?err} # P2P
- 127.0.0.1:${PLATFORM_DRIVE_TENDERDASH_RPC_PORT:?err}:${PLATFORM_DRIVE_TENDERDASH_RPC_PORT:?err} # RPC
volumes:
- drive_tenderdash:/tenderdash
- ${DASHMATE_HOME_DIR:?err}/${CONFIG_NAME:?err}/platform/drive/tenderdash:/tenderdash/config:ro
dapi_api:
image: ${PLATFORM_DAPI_API_DOCKER_IMAGE:?err}
restart: unless-stopped
depends_on:
- drive_tenderdash
- core
environment:
- API_JSON_RPC_PORT=3004
- API_GRPC_PORT=3005
- DASHCORE_RPC_HOST=core
- DASHCORE_RPC_PORT=${CORE_RPC_PORT:?err}
- DASHCORE_RPC_USER=${CORE_RPC_USER:?err}
- DASHCORE_RPC_PASS=${CORE_RPC_PASSWORD:?err}
- DASHCORE_ZMQ_HOST=core
- DASHCORE_ZMQ_PORT=29998
- DASHCORE_P2P_HOST=core
- DASHCORE_P2P_PORT=${CORE_P2P_PORT:?err}
- DASHCORE_P2P_NETWORK=devnet
- NETWORK=devnet
- TENDERMINT_RPC_HOST=drive_tenderdash
- TENDERMINT_RPC_PORT=26657
- NODE_ENV=${ENVIRONMENT:?err}
command: npm run api
dapi_tx_filter_stream:
image: ${PLATFORM_DAPI_API_DOCKER_IMAGE:?err}
restart: unless-stopped
depends_on:
- core
environment:
- TX_FILTER_STREAM_GRPC_PORT=3006
- DASHCORE_RPC_HOST=core
- DASHCORE_RPC_PORT=${CORE_RPC_PORT:?err}
- DASHCORE_RPC_USER=${CORE_RPC_USER:?err}
- DASHCORE_RPC_PASS=${CORE_RPC_PASSWORD:?err}
- DASHCORE_ZMQ_HOST=core
- DASHCORE_ZMQ_PORT=29998
- DASHCORE_P2P_HOST=core
- DASHCORE_P2P_PORT=${CORE_P2P_PORT:?err}
- DASHCORE_P2P_NETWORK=devnet
- NETWORK=devnet
- TENDERMINT_RPC_HOST=drive_tenderdash
- TENDERMINT_RPC_PORT=26657
command: npm run tx-filter-stream
dapi_envoy:
image: ${PLATFORM_DAPI_ENVOY_DOCKER_IMAGE:?err}
restart: unless-stopped
ports:
- ${PLATFORM_DAPI_ENVOY_HTTP_PORT:?err}:10000 # JSON RPC and gRPC Web
- ${PLATFORM_DAPI_ENVOY_GRPC_PORT:?err}:50051 # gRPC Native
depends_on:
- dapi_api
- dapi_tx_filter_stream
volumes:
- ${DASHMATE_HOME_DIR:?err}/${CONFIG_NAME:?err}/platform/dapi/envoy/envoy.yaml:/etc/envoy/envoy.yaml
volumes:
drive_abci_data:
drive_mongodb_data:
drive_tenderdash: