Docker behind nginx different location

How do I move the docker container output to a different location using nginx?
I would like to use docker owncloud and move it to localhost/owncloud, as I only have two ports available…

Best regards,
pepe