Skip to content

swoldanski/odoo-nginx-docker-multitenant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Odoo Nginx Docker multitenant setup

Running Odoo container with Nginx proxy - multi tenant setup, fast and dirty - but works

Prerequisite:

  • server with installed Docker like CoreOS or Ubuntu and 1GB RAM at least

create config for nginx in /nginx/nginx.conf - working example is in repo

next run:

docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres

docker run --name odoo --link db:db -t odoo -- --proxy-mode --db-filter=^%h$

docker run --link odoo:odoo --name nginx -v /nginx/nginx.conf:/etc/nginx/nginx.conf:ro -d -p 80:80 nginx

REMEMBER to change default Odoo master password from admin to something strong... to do this just open in web browser your server address http://ip - you will be redirected to database manager, go to password option and set new MASTER password

when you will create new database for tenant use your master password and replace dots in hostname with dash:

example.com -> example-com

redirecting from www.example.com to example.com is done by nginx

About

Running Odoo container with Nginx proxy - multi tenant setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages