Reputation: 13
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:
xmlrpc_port = 80
so it runs on port 80iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8069
onto rc.localHas anyone been able to figure this out?
Upvotes: 0
Views: 1298
Reputation: 172
if you're running Odoo inside docker container, you can just map port 80
on the host
to port 8069
inside the docker container using -p
option:
$ docker run -d -p 80:8069 odoo:12.0
to test this you should run netstat
command line.
$ sudo netstat -antop | grep LISTEN | grep 80
you should see something like this:
tcp6 0 0 :::80 :::* LISTEN 971/docker-proxy
if you still have problems, then you should examine port security settings (e.g. security groups
on AWS platform)
Upvotes: 1