title: Deploy static website on port 5000 with docker and nginx
body: <p>I try to deploy a simple static <code>index.html</code> and <code>style.css</code> website with docker.</p>
  
  <pre><code>server {
  
      #root /var/www/html;
  
      # Add index.php to the list if you are using PHP
      #index index.html index.htm index.nginx-debian.html;
      server_name data-mastery.com; # managed by Certbot
  
       location /blog {
         proxy_pass          http://127.0.0.1:5000;
       }
  
      listen 443 ssl; # managed by Certbot
  
      ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
      ssl_certificate /etc/letsencrypt/live/data-mastery.com/fullchain.pem; # managed by Certbot
      ssl_certificate_key /etc/letsencrypt/live/data-mastery.com/privkey.pem; # managed by Certbot
      include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
      ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  
  }
  
  
  server {
      if ($host = data-mastery.com) {
          return 301 https://$host$request_uri;
      } # managed by Certbot
  
      listen 80 ;
      listen [::]:80 ;
      server_name data-mastery.com;
      return 404; # managed by Certbot
  }
  </code></pre>
  
  <p>This is my simple Dockerfile:</p>
  
  <pre><code>FROM nginx:alpine
  COPY . /usr/share/nginx/html
  </code></pre>
  
  <p>I started the container with the following command:</p>
  
  <pre><code>sudo docker run -p 5000:5000 blog
  </code></pre>
  
  <p>I am not sure that this line means when I run <code>docker ps</code>:</p>
  
  <pre><code>80/tcp, 0.0.0.0:5000-&gt;5000/tcp
  </code></pre>
  
  <p>Is everything correct here or not?</p>
  
  <p>How can I make it running on port 5000?</p>
  
  <p>Thank you!</p>