Skip to content

Merctrans/merc-dev

Repository files navigation

Docker Odoo Production

All services

  • odoo 15 - Change version in docker-compose if you want. Example: odoo:14
  • postgres 13
  • pgadmin4 - Manage your postgres odoo database
  • nginx - proxy server with config/odoo-nginx.conf
  • debug docker odoo

How to deploy docker odoo production?

docker-compose up -d
  • Tunr off services
docker-compose down 
  • Turn off and delete all data
docker-compose down -v

Docker odoo python container

docker exec -it web-odoo bash -c "odoo shell -d odoo"

How to include your module in odoo docker for production

Simply put the folder of your local add-ons into the "local-addons" folder

Odoo container Bash

Connect Postgres in docker

docker exec -it web-odoo bash
# psql in container
psql -U odoo odoo

Update Module in Terminal via Docker

docker exec -it web-odoo-morons bash
# /usr/bin/odoo -d odoo -u all --no-http

pgadmin4 - Manage your odoo database in browser

connect pgadmin4 - port 5433 localhost:5433 Create new server
Name your server then modify in Connection tab
hostname/address : db
username: odoo
password: odoo \