SSL for docker apps

This is an “XY problem”.
Normally, in that case, I would use SSH, which can tunnel TCP connections securely in any way you wanted.