Self secured nginx reverse proxy

Hello.
I’m trying to secure a nginx reverse proxy with self generated ssl keys using openssl.
To show the problem I have I created a small repo on github at: https://github.com/MateoLa/hola-plex.
As you can see in the step 3 you will be able to access the secure port on localhost wich confim that the generated keys are right, but the container (“nginx”) generated throught docker-compose isn’t ssl capable. Why?
Any help will be very appreciate.
Thanks, Mateo.