'docker-compose build' works but 'docker build' does not? I think both give the same error. I think your previous problem is related to this (the error is probably related to...
And you are requesting localhost in some other port (not 3005)?
How are you getting an nginx error without any nginx in here?
Volume on the certificate itself or the directory that contains it?