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.
28 lines
650 B
28 lines
650 B
version: '3.8'
|
|
|
|
services:
|
|
spiderman-api:
|
|
image: spiderman:latest
|
|
ports:
|
|
- "8888:8888"
|
|
environment:
|
|
- PORT=8888
|
|
- 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:8888/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
networks:
|
|
fabric-network: |