-
Notifications
You must be signed in to change notification settings - Fork 272
/
docker-compose.yml
43 lines (42 loc) · 1.49 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
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
version: '2'
services:
driver-fabric:
image: ${DOCKER_IMAGE_NAME}:${DOCKER_TAG}
container_name: driver-fabric-${NETWORK_NAME}
environment:
- NETWORK_NAME=${NETWORK_NAME}
- RELAY_ENDPOINT=${RELAY_ENDPOINT}
- DRIVER_ENDPOINT=0.0.0.0:${DRIVER_PORT}
- CONNECTION_PROFILE=/driver/fabric/ccp.json
- DRIVER_CONFIG=/driver/fabric/config.json
- INTEROP_CHAINCODE=${INTEROP_CHAINCODE}
- local=false
- RELAY_TLS=${RELAY_TLS}
- RELAY_TLSCA_CERT_PATH=${RELAY_TLSCA_CERT_PATH}
- DRIVER_TLS=${DRIVER_TLS}
- DRIVER_TLS_CERT_PATH=${DRIVER_TLS_CERT_PATH}
- DRIVER_TLS_KEY_PATH=${DRIVER_TLS_KEY_PATH}
- WALLET_PATH=${WALLET_PATH}
- DEBUG=false
- LEVELDB_LOCKED_MAX_RETRIES=${LEVELDB_LOCKED_MAX_RETRIES}
- LEVELDB_LOCKED_RETRY_BACKOFF_MSEC=${LEVELDB_LOCKED_RETRY_BACKOFF_MSEC}
- ENABLE_MONITOR=${ENABLE_MONITOR}
- MONITOR_SYNC_PERIOD=${MONITOR_SYNC_PERIOD}
volumes:
- ${CONNECTION_PROFILE}:/driver/fabric/ccp.json
- ${DRIVER_CONFIG}:/driver/fabric/config.json
- ./wallet-${NETWORK_NAME}:/driver/fabric/wallet-${NETWORK_NAME}
- ${TLS_CREDENTIALS_DIR}:/driver/fabric/credentials
ports:
- "${DRIVER_PORT}:${DRIVER_PORT}"
command: sh -c "npm run start"
# This networks section is required for when the peers have networks specified
networks:
default:
external:
name: ${EXTERNAL_NETWORK}