mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 23:45:10 +00:00
- default command should be start, rather than start:dev in the docker image - added a multistage build - fixed node-gyp error - removed dev dependencies - added a start:dotenv script to support a .env file in production (may be useful for k8s later) - updated Readme and generateEnv script to simplify the setup - updated external network in docker-compose.yaml to match the test network Signed-off-by: James Taylor <jamest@uk.ibm.com>
24 lines
394 B
YAML
24 lines
394 B
YAML
version: '3'
|
|
# Replace network name with the fabric test-network name
|
|
services:
|
|
redis:
|
|
image: 'redis'
|
|
ports:
|
|
- 6379:6379
|
|
networks:
|
|
- fabric_test
|
|
|
|
nodeapp:
|
|
image: 'fabric-rest-sample'
|
|
command: ['start:dotenv']
|
|
ports:
|
|
- 3000:3000
|
|
env_file:
|
|
- ./.env
|
|
networks:
|
|
- fabric_test
|
|
|
|
|
|
networks:
|
|
fabric_test:
|
|
external: true
|