How to run Odoo’s Docker image in port 80

After installing Odoo’s image using Docker in an ubuntu server, I am unable to use Odoo on port 80 instead of 8069. I have tried multiple approaches without success including:

  • Installing nginx in the server and use as proxy to redirect 8069 to 80
  • Editing odoo.conf file and added xmlrpc_port = 80 so it runs on port 80
  • Pasting iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8069 onto rc.local
  • Running odoo from start up in 80 port

Has anyone been able to figure this out?

Source: StackOverflow