fabric-samples/asset-transfer-basic/rest-api-typescript/docker-compose.yaml
Mark S. Lewis 6607df97bc
Remove obsolete version element from compose files
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>
2025-10-30 18:16:18 +00:00

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