forked from hyperledger/fabric-private-chaincode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (46 loc) · 1.56 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
46
47
48
49
50
51
52
#
# Copyright IBM Corp All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
# Environment Variables that need to be set to use this file
#
# COMPOSE_PROJECT_NAME - This is used to ensure all chaincode containers are running on the same network
# as the peers, orderer, and ca. The only requirement is that this is set to
# some string and cannot be left blank. To match with the default FPC network,
# use `fabric-fpc`.
#
#
# NOTE: To use the version of the fabric-gateway or the frontend on the host machine, uncomment
# the respective volumes section in the services
#
version: '2'
networks:
basic:
services:
auction_client:
container_name: auction_client
image: hyperledger/fabric-private-chaincode-auction_client_backend:${FPC_VERSION}
build:
context: client/backend/fabric-gateway
ports:
- "3000:3000"
working_dir: /usr/src/app
command: npm start
# volumes:
# - ${DOCKERD_FPC_PATH}/demo/client/backend/fabric-gateway/src:/usr/src/app/src
# - ${DOCKERD_FPC_PATH}/demo/client/backend/fabric-gateway/config.json:/usr/src/app/config.json
auction_frontend:
container_name: auction_frontend
image: hyperledger/fabric-private-chaincode-auction_frontend:${FPC_VERSION}
build:
context: client/frontend
ports:
- "5000:5000"
# volumes:
# - ${DOCKERD_FPC_PATH}/demo/client/frontend/src:/usr/src/app/src
depends_on:
- auction_client
networks:
default:
external:
name: ${COMPOSE_PROJECT_NAME}_basic