Hilario M.
Hilario M.

Reputation: 13

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:

Has anyone been able to figure this out?

Upvotes: 0

Views: 1298

Answers (1)

Ahmed Magdy
Ahmed Magdy

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

Related Questions