mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 01:25:10 +00:00
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:
parent
a35f8b7cfc
commit
a72b2b5132
26 changed files with 29 additions and 84 deletions
|
|
@ -1,5 +1,3 @@
|
||||||
version: "3.6"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
docker_test:
|
docker_test:
|
||||||
external: true
|
external: true
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
version: '3'
|
|
||||||
# Replace network name with the fabric test-network name
|
# Replace network name with the fabric test-network name
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
image: 'redis'
|
image: "redis"
|
||||||
command: ['--maxmemory-policy','noeviction','--requirepass','${REDIS_PASSWORD}']
|
command:
|
||||||
|
["--maxmemory-policy", "noeviction", "--requirepass", "${REDIS_PASSWORD}"]
|
||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 6379:6379
|
||||||
networks:
|
networks:
|
||||||
- fabric_test
|
- fabric_test
|
||||||
|
|
||||||
nodeapp:
|
nodeapp:
|
||||||
image: 'ghcr.io/hyperledger/fabric-rest-sample:latest'
|
image: "ghcr.io/hyperledger/fabric-rest-sample:latest"
|
||||||
command: ['start:dotenv']
|
command: ["start:dotenv"]
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
env_file:
|
env_file:
|
||||||
|
|
@ -19,8 +19,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- REDIS_PASSWORD
|
- REDIS_PASSWORD
|
||||||
networks:
|
networks:
|
||||||
- fabric_test
|
- fabric_test
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
fabric_test:
|
fabric_test:
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
test:
|
test:
|
||||||
name: fabric_test
|
name: fabric_test
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
test:
|
test:
|
||||||
name: fabric_test
|
name: fabric_test
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
peer0.org3.example.com:
|
peer0.org3.example.com:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,3 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,3 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,11 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
test:
|
test:
|
||||||
name: fabric_test
|
name: fabric_test
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
peer0.org3.example.com:
|
peer0.org3.example.com:
|
||||||
container_name: peer0.org3.example.com
|
container_name: peer0.org3.example.com
|
||||||
image: hyperledger/fabric-peer:latest
|
image: hyperledger/fabric-peer:latest
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
test:
|
test:
|
||||||
name: fabric_test
|
name: fabric_test
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
test:
|
test:
|
||||||
name: fabric_test
|
name: fabric_test
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
peer0.org3.example.com:
|
peer0.org3.example.com:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
orderer.example.com:
|
orderer.example.com:
|
||||||
orderer2.example.com:
|
orderer2.example.com:
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
test:
|
test:
|
||||||
name: fabric_test
|
name: fabric_test
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
test:
|
test:
|
||||||
name: fabric_test
|
name: fabric_test
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
orderer.example.com:
|
orderer.example.com:
|
||||||
peer0.org1.example.com:
|
peer0.org1.example.com:
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
services:
|
services:
|
||||||
peer0.org1.example.com:
|
peer0.org1.example.com:
|
||||||
container_name: peer0.org1.example.com
|
container_name: peer0.org1.example.com
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,3 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,3 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
services:
|
services:
|
||||||
peer0.org1.example.com:
|
peer0.org1.example.com:
|
||||||
container_name: peer0.org1.example.com
|
container_name: peer0.org1.example.com
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,3 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,3 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
peer0.org1.example.com:
|
peer0.org1.example.com:
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
version: '3'
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
prometheus_data: {}
|
prometheus_data: {}
|
||||||
grafana_storage: {}
|
grafana_storage: {}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
prometheus:
|
prometheus:
|
||||||
|
|
@ -12,10 +10,10 @@ services:
|
||||||
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||||
- prometheus_data:/prometheus
|
- prometheus_data:/prometheus
|
||||||
command:
|
command:
|
||||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||||
- '--storage.tsdb.path=/prometheus'
|
- "--storage.tsdb.path=/prometheus"
|
||||||
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
|
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
||||||
- '--web.console.templates=/usr/share/prometheus/consoles'
|
- "--web.console.templates=/usr/share/prometheus/consoles"
|
||||||
ports:
|
ports:
|
||||||
- "9090:9090"
|
- "9090:9090"
|
||||||
|
|
||||||
|
|
@ -54,8 +52,8 @@ services:
|
||||||
- /proc:/host/proc:ro
|
- /proc:/host/proc:ro
|
||||||
- /sys:/host/sys:ro
|
- /sys:/host/sys:ro
|
||||||
command:
|
command:
|
||||||
- '--path.procfs=/host/proc'
|
- "--path.procfs=/host/proc"
|
||||||
- '--path.sysfs=/host/sys'
|
- "--path.sysfs=/host/sys"
|
||||||
- --collector.filesystem.ignored-mount-points
|
- --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)($$|/)"
|
- "^/(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:
|
ports:
|
||||||
|
|
@ -64,5 +62,5 @@ services:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: fabric_test
|
name: fabric_test
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
ca_token_network:
|
ca_token_network:
|
||||||
image: hyperledger/fabric-ca:1.5.7
|
image: hyperledger/fabric-ca:1.5.7
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
# fabric_test is the name of the fabric-samples test network.
|
# fabric_test is the name of the fabric-samples test network.
|
||||||
# By connecting to it, we can reach the peers at their DNS names
|
# By connecting to it, we can reach the peers at their DNS names
|
||||||
# (e.g. peer0.org1.example.com).
|
# (e.g. peer0.org1.example.com).
|
||||||
|
|
@ -92,10 +90,10 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
swagger-ui:
|
swagger-ui:
|
||||||
image: swaggerapi/swagger-ui
|
image: swaggerapi/swagger-ui
|
||||||
ports:
|
ports:
|
||||||
- '8080:8080'
|
- "8080:8080"
|
||||||
environment:
|
environment:
|
||||||
- URL=/swagger.yaml
|
- URL=/swagger.yaml
|
||||||
volumes:
|
volumes:
|
||||||
- ./swagger.yaml:/usr/share/nginx/html/swagger.yaml
|
- ./swagger.yaml:/usr/share/nginx/html/swagger.yaml
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
# see https://github.com/hyperledger-labs/blockchain-explorer
|
# see https://github.com/hyperledger-labs/blockchain-explorer
|
||||||
|
|
||||||
version: '2.1'
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
walletstore:
|
walletstore:
|
||||||
|
|
@ -15,7 +12,6 @@ networks:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
explorerdb.mynetwork.com:
|
explorerdb.mynetwork.com:
|
||||||
image: ghcr.io/hyperledger-labs/explorer-db:latest
|
image: ghcr.io/hyperledger-labs/explorer-db:latest
|
||||||
container_name: explorerdb.mynetwork.com
|
container_name: explorerdb.mynetwork.com
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue