title: Running docker shiny app on my own domain
body: <p>I have a VPS Linux (Ubuntu) server with specific IP and I would like to run my shiny app on my own domain <a href="http://my_domain.com" rel="nofollow noreferrer">http://my_domain.com</a>. Therefore, I have built a docker container and I have run my app on the Ubuntu terminal:</p>
  <pre><code>sudo docker run -rm -p 4096:4096 my_app
  
  </code></pre>
  <p>It works well on the localhost. Then, I have modified the following lines in my Dockerfile:</p>
  <pre><code>EXPOSE 80
  CMD [&quot;R&quot;, &quot;-e&quot;, &quot;shiny::runApp('/srv/shiny-server/my_app/app',  host = 'server_ip', port = 80)&quot;]
  
  </code></pre>
  <p>I have built and run my docker container again and I have got the following error:</p>
  <pre><code>sudo docker run --rm -p 80:80 my_app
  
  Listening on http://server_ip:80
  createTcpServer: address not available
  Error in initialize(...) : Failed to create server
  
  </code></pre>
  <p>Maybe I need to configure nginx. I would be grateful if someone could tell me what would be the best solution to run my app on my own domain and how to do it.</p>