Почему mysql, а не PostgreSQL, как он предназначен?
Что-то вроде ...
# docker-compose.yaml
version: '2.4'
services:
postgres:
image: postgres:10.3-alpine
restart: unless-stopped
environment:
- POSTGRES_DB=ca
- POSTGRES_USER=admin_postgres
- POSTGRES_PASSWORD=admin_postgres_password
volumes:
- /volumes/ca_postgres:/var/lib/postgresql/data
fabric-ca:
image: hyperledger/fabric-ca:1.4
restart: unless-stopped
environment:
- FABRIC_CA_SERVER_PORT=7054
- FABRIC_CA_HOME=/root/home
volumes:
- /volumes/ca_home:/root/home
ports:
- 7054:7054
Вы должны предварительно подготовить ваш fabric-ca-server-config.yaml в свойFABRIC_CA_HOME:
# fabric-ca-server-config.yaml
# ...
db:
type: postgres
datasource: host=postgres port=5432 user=admin_postgres password=admin_postgres_password dbname=ca sslmode=disable
# ...