fabric-samples/asset-transfer-basic/rest-api-typescript/docker-compose.yaml
James Taylor 82b1249f4e Improve Docker support
- 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>
2021-12-14 14:31:21 +00:00

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