Prepare the following filestructure:
/nginx +-- nginx.conf # part of this gist
+-- /certs +-- Nexus.crt.pem # "TRUSTED certificate"
+-- Nexus.key.pem
Run the following commands:
docker network create nexus
docker volume create --name nexus-data
docker run -d --network nexus --restart always -v nexus-data:/nexus-data --name nexus sonatype/nexus3
docker run -d --network nexus --restart always -p 80:80 -p 443:443 -p 3000-3010:3000-3010 -v ~/nexus/:/etc/nginx/ --name nginx nginx