Cannot create stack

Hello, I cannot create a stack because I am receiving error

Deployment error
Could not load X509 key pair: open /.docker/cert.pem: no such file or directory

I have logged this as an issue in github https://github.com/portainer/portainer/issues/3872
please assist, I cannot move forward with me deployment

This is a fresh install of portainer and agent on a fresh install on 2 ubuntu 18.4 servers

As reported in the github issue, this is a duplicate issue of another issue already opened on our repo. The root cause is the deprecated libcompose library we use to deploy stacks on standalone, and we are hoping to replace this soon.