An way to setup odoo in a dockerised form. This is heavily inspired from nginx-certbot and InstallScript.
-
Modify configuration in
nginx/odoo.conf
,init_cert.sh
,config/odoo.conf
with the appropriate config/credentials. -
Build the image
docker-compose build
-
Run the init script(Ensure that you have made the appropriate dns mapping for the server at your domain provider):
./init-cert.sh
-
Start
docker-compose up -d
Make a folder called addons
and add your addons there and restart your server with docker-compose down
and docker-compose up -d
Change the base image in Dockerfile