mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
The version element is obsolete and unused since Compose v1 was deprecated in favour of Compose v2 in 2022, and reached end-of-life in 2023. The version element generates warning messages running Docker Compose commands when bringing up and down the test-network, which adds unnecessary noise and can be confusing for users. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
26 lines
530 B
YAML
26 lines
530 B
YAML
# Replace network name with the fabric test-network name
|
|
services:
|
|
redis:
|
|
image: "redis"
|
|
command:
|
|
["--maxmemory-policy", "noeviction", "--requirepass", "${REDIS_PASSWORD}"]
|
|
ports:
|
|
- 6379:6379
|
|
networks:
|
|
- fabric_test
|
|
|
|
nodeapp:
|
|
image: "ghcr.io/hyperledger/fabric-rest-sample:latest"
|
|
command: ["start:dotenv"]
|
|
ports:
|
|
- 3000:3000
|
|
env_file:
|
|
- ./.env
|
|
environment:
|
|
- REDIS_PASSWORD
|
|
networks:
|
|
- fabric_test
|
|
|
|
networks:
|
|
fabric_test:
|
|
external: true
|