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