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>
This commit is contained in:
Mark S. Lewis 2025-11-04 15:52:28 +00:00 committed by GitHub
parent a35f8b7cfc
commit a72b2b5132
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 29 additions and 84 deletions

View file

@ -1,5 +1,3 @@
version: "3.6"
networks:
docker_test:
external: true

View file

@ -1,17 +1,17 @@
version: '3'
# Replace network name with the fabric test-network name
services:
redis:
image: 'redis'
command: ['--maxmemory-policy','noeviction','--requirepass','${REDIS_PASSWORD}']
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']
image: "ghcr.io/hyperledger/fabric-rest-sample:latest"
command: ["start:dotenv"]
ports:
- 3000:3000
env_file:
@ -19,8 +19,7 @@ services:
environment:
- REDIS_PASSWORD
networks:
- fabric_test
- fabric_test
networks:
fabric_test:

View file

@ -3,8 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
networks:
test:
name: fabric_test

View file

@ -3,8 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
networks:
test:
name: fabric_test

View file

@ -3,8 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
volumes:
peer0.org3.example.com:

View file

@ -2,6 +2,3 @@
#
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'

View file

@ -2,6 +2,3 @@
#
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'

View file

@ -3,14 +3,11 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
networks:
test:
name: fabric_test
services:
peer0.org3.example.com:
container_name: peer0.org3.example.com
image: hyperledger/fabric-peer:latest

View file

@ -3,8 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
networks:
test:
name: fabric_test

View file

@ -3,8 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
networks:
test:
name: fabric_test

View file

@ -3,8 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
volumes:
peer0.org3.example.com:

View file

@ -1,5 +1,3 @@
version: '3.7'
volumes:
orderer.example.com:
orderer2.example.com:

View file

@ -3,8 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
networks:
test:
name: fabric_test

View file

@ -3,8 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
networks:
test:
name: fabric_test

View file

@ -3,8 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
volumes:
orderer.example.com:
peer0.org1.example.com:

View file

@ -3,7 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
services:
peer0.org1.example.com:
container_name: peer0.org1.example.com

View file

@ -2,6 +2,3 @@
#
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'

View file

@ -2,5 +2,3 @@
#
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'

View file

@ -3,7 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
services:
peer0.org1.example.com:
container_name: peer0.org1.example.com

View file

@ -2,5 +2,3 @@
#
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'

View file

@ -2,5 +2,3 @@
#
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'

View file

@ -3,8 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
services:
peer0.org1.example.com:
volumes:

View file

@ -1,8 +1,6 @@
version: '3'
volumes:
prometheus_data: {}
grafana_storage: {}
prometheus_data: {}
grafana_storage: {}
services:
prometheus:
@ -12,10 +10,10 @@ services:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
ports:
- "9090:9090"
@ -54,8 +52,8 @@ services:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- "--path.procfs=/host/proc"
- "--path.sysfs=/host/sys"
- --collector.filesystem.ignored-mount-points
- "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)"
ports:
@ -64,5 +62,5 @@ services:
networks:
default:
external: true
name: fabric_test
external: true
name: fabric_test

View file

@ -3,8 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
#
version: '3.7'
services:
ca_token_network:
image: hyperledger/fabric-ca:1.5.7

View file

@ -1,5 +1,3 @@
version: '3.7'
# fabric_test is the name of the fabric-samples test network.
# By connecting to it, we can reach the peers at their DNS names
# (e.g. peer0.org1.example.com).
@ -92,10 +90,10 @@ services:
condition: service_healthy
swagger-ui:
image: swaggerapi/swagger-ui
ports:
- '8080:8080'
environment:
- URL=/swagger.yaml
volumes:
- ./swagger.yaml:/usr/share/nginx/html/swagger.yaml
image: swaggerapi/swagger-ui
ports:
- "8080:8080"
environment:
- URL=/swagger.yaml
volumes:
- ./swagger.yaml:/usr/share/nginx/html/swagger.yaml

View file

@ -1,10 +1,7 @@
# SPDX-License-Identifier: Apache-2.0
# see https://github.com/hyperledger-labs/blockchain-explorer
version: '2.1'
volumes:
pgdata:
walletstore:
@ -15,7 +12,6 @@ networks:
external: true
services:
explorerdb.mynetwork.com:
image: ghcr.io/hyperledger-labs/explorer-db:latest
container_name: explorerdb.mynetwork.com