Docker: automating ipfs cluster with manual peer id and private key (identity ID does not match the private_key)

DOC:

I trying to automate my docker of ipfs-cluster-service, as per doc its possible but none of environment variable is specified in the doc, so I am using as general rule like this:

  ipfs-cluster:
    container_name: ipfs-cluster-mcapi
    image: ipfs/ipfs-cluster:v0.13.3
    depends_on:
      - ipfs
    environment:
      CLUSTER_ID: ${CLUSTER_ID} # From shell variable
      CLUSTER_PRIVATE_KEY: ${CLUSTER_PRIVATE_KEY} # From shell variable
      CLUSTER_SECRET: ${CLUSTER_SECRET} # From shell variable, must be same for all peers

but it end up showing error like this:

ipfs-cluster-mcapi | ipfs-cluster-service version 0.13.3+gitdd87dba323dd5372d1443c7badd95ad6e20f7874
ipfs-cluster-mcapi | Found IPFS cluster configuration at /data/ipfs-cluster
ipfs-cluster-mcapi | 2021-05-28T10:07:41.436Z   INFO    service ipfs-cluster-service/daemon.go:46       Initializing. For verbose output run with "-l debug". Please wait...
ipfs-cluster-mcapi | error loading configurations: error applying environment variables to the identity: identity ID does not match the private_key
ipfs-cluster-mcapi exited with code 1

I am setting env var correctly and use correct id and privatekey pair (which is generated by default init of ipfs-cluster-service)

Any help, Thanks

Try setting CLUSTER_PRIVATEKEY instead of CLUSTER_PRIVATE_KEY.

Thank you, it was a silly mistake.