Skip to content

Commit a72b2b5

Browse files
Remove obsolete version element from compose files (#1361)
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>
1 parent a35f8b7 commit a72b2b5

26 files changed

+29
-84
lines changed

asset-transfer-basic/chaincode-external/docker-compose-chaincode.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.6"
2-
31
networks:
42
docker_test:
53
external: true
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
version: '3'
2-
# Replace network name with the fabric test-network name
1+
# Replace network name with the fabric test-network name
32
services:
4-
redis:
5-
image: 'redis'
6-
command: ['--maxmemory-policy','noeviction','--requirepass','${REDIS_PASSWORD}']
3+
redis:
4+
image: "redis"
5+
command:
6+
["--maxmemory-policy", "noeviction", "--requirepass", "${REDIS_PASSWORD}"]
77
ports:
88
- 6379:6379
99
networks:
1010
- fabric_test
11-
11+
1212
nodeapp:
13-
image: 'ghcr.io/hyperledger/fabric-rest-sample:latest'
14-
command: ['start:dotenv']
13+
image: "ghcr.io/hyperledger/fabric-rest-sample:latest"
14+
command: ["start:dotenv"]
1515
ports:
1616
- 3000:3000
1717
env_file:
1818
- ./.env
1919
environment:
2020
- REDIS_PASSWORD
2121
networks:
22-
- fabric_test
23-
22+
- fabric_test
2423

2524
networks:
2625
fabric_test:
27-
external: true
26+
external: true

test-network/addOrg3/compose/compose-ca-org3.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

6-
version: '3.7'
7-
86
networks:
97
test:
108
name: fabric_test

test-network/addOrg3/compose/compose-couch-org3.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

6-
version: '3.7'
7-
86
networks:
97
test:
108
name: fabric_test

test-network/addOrg3/compose/compose-org3.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

6-
version: '3.7'
7-
86
volumes:
97
peer0.org3.example.com:
108

test-network/addOrg3/compose/docker/docker-compose-ca-org3.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44
#
5-
6-
version: '3.7'
7-

test-network/addOrg3/compose/docker/docker-compose-couch-org3.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44
#
5-
6-
version: '3.7'
7-

test-network/addOrg3/compose/docker/docker-compose-org3.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

6-
version: '3.7'
7-
86
networks:
97
test:
108
name: fabric_test
119

1210
services:
13-
1411
peer0.org3.example.com:
1512
container_name: peer0.org3.example.com
1613
image: hyperledger/fabric-peer:latest

test-network/addOrg3/compose/podman/podman-compose-ca-org3.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

6-
version: '3.7'
7-
86
networks:
97
test:
108
name: fabric_test

test-network/addOrg3/compose/podman/podman-compose-couch-org3.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

6-
version: '3.7'
7-
86
networks:
97
test:
108
name: fabric_test

0 commit comments

Comments
 (0)