Let's assume, we're working on the home directory.
- Create
odoo
directory
mkdir -p ~/odoo
- Create
docker-compose.yml
in the odoo folder - Paste contents from
docker-compose.yml
file
- If we're trying to run in locally, just keep
odoo
anddb
services from the docker compose file. - Need to keep only
odoo-data
,odoo-db
volumes
- If we're trying to run in the server, we need to keep all services.
- Create a
nginx
directory in the odoo folder - Create a file
default.conf.template
inside./nginx/templates_http
folder - Paste contents from
default_http.conf
into./nginx/templates_http/default.conf.template
- Create a file
default.conf.template
inside./nginx/templates_https
folder - Paste contents from
default_https.conf
into./nginx/templates_https/default.conf.template
- You need to enable
longpolling_port
,workers
andproxy_mode
- If we need to configure odoo, create
./config/odoo.conf
file into odoo folder - Paste contents from
odoo.conf
file
docker compose up -d
- Locally at http://127.0.0.1:8069
- Production at example.com
For further information, please check Official Docs