docker-compose.yml 的 CA 部署
CA Deployment with docker-compose.yml
您好!请帮帮我。在修改 fabric-ca-server-config.yaml 文件后,如何使用 docker-compose.yml 和新端口和操作端口将 CA 部署到 docker 桌面?我尝试这样做,每次部署我的 CA 时,我都会收到默认端口。
fabric-ca-server:
command: sh -c 'fabric-ca-server start --config /mnt/b/TestFolderCAHFUpdate/testingDir/fabric-ca-server-config.yaml'
container_name: fabric-ca-server
environment:
- FABRIC_CA_HOME=/mnt/b/TestFolderCAHFUpdate/testingDir/fabric-ca-server
# - FABRIC_CA_SERVER_CA_NAME=ca1
- FABRIC_CA_SERVER_CA_CERTFILE=/mnt/b/TestFolderCAHFUpdate/testingDir/ca-cert.pem
- FABRIC_CA_SERVER_CA_KEYFILE=/mnt/b/TestFolderCAHFUpdate/testingDir/msp/keystore/49ac52bedc38ece5b9f5bb61d8367b6dd65c3e4da6130e0718a62d2c6465505b_sk
image: hyperledger/fabric-ca
ports:
- 7054:7054
volumes:
- ./fabric-ca-server-config.yaml:/mnt/b/TestFolderCAHFUpdate/testingDir/fabric-ca-server-config.yaml
将环境FABRIC_CA_SERVER_PORT
值设置为您要使用的端口并修改端口映射:
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca-org1
- FABRIC_CA_SERVER_TLS_ENABLED=false
- FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem
- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/3adeeadd955deae62f8172aa013dfa7646350a7d36d85024796396eedda275e2_sk
- FABRIC_CA_SERVER_PORT=9054
ports:
- "9054:9054"
您好!请帮帮我。在修改 fabric-ca-server-config.yaml 文件后,如何使用 docker-compose.yml 和新端口和操作端口将 CA 部署到 docker 桌面?我尝试这样做,每次部署我的 CA 时,我都会收到默认端口。
fabric-ca-server:
command: sh -c 'fabric-ca-server start --config /mnt/b/TestFolderCAHFUpdate/testingDir/fabric-ca-server-config.yaml'
container_name: fabric-ca-server
environment:
- FABRIC_CA_HOME=/mnt/b/TestFolderCAHFUpdate/testingDir/fabric-ca-server
# - FABRIC_CA_SERVER_CA_NAME=ca1
- FABRIC_CA_SERVER_CA_CERTFILE=/mnt/b/TestFolderCAHFUpdate/testingDir/ca-cert.pem
- FABRIC_CA_SERVER_CA_KEYFILE=/mnt/b/TestFolderCAHFUpdate/testingDir/msp/keystore/49ac52bedc38ece5b9f5bb61d8367b6dd65c3e4da6130e0718a62d2c6465505b_sk
image: hyperledger/fabric-ca
ports:
- 7054:7054
volumes:
- ./fabric-ca-server-config.yaml:/mnt/b/TestFolderCAHFUpdate/testingDir/fabric-ca-server-config.yaml
将环境FABRIC_CA_SERVER_PORT
值设置为您要使用的端口并修改端口映射:
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca-org1
- FABRIC_CA_SERVER_TLS_ENABLED=false
- FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem
- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/3adeeadd955deae62f8172aa013dfa7646350a7d36d85024796396eedda275e2_sk
- FABRIC_CA_SERVER_PORT=9054
ports:
- "9054:9054"