You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
spiderman/docker-compose.yml

29 lines
660 B

version: '3.8'
services:
asset-transfer-api:
build: .
ports:
- "8080:8080"
environment:
- PORT=8080
- CHAINCODE_NAME=basic
- CHANNEL_NAME=mychannel
- LOG_LEVEL=info
- LOG_FORMAT=json
volumes:
# 挂载Fabric证书目录(根据实际路径调整)
- ../../test-network:/test-network:ro
networks:
- fabric-network
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
fabric-network:
external: true