vanderleiromera / odoo-deploy

Deploy Odoo as Docker container with Nginx and Let's Encrypt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requirements

  • Docker 18.x+
  • Docker Compose 1.27.x+

Usage

  • Clone this repository and go to folder:
git clone https://github.com/augustomurri/odoo-deploy.git
cd odoo-deploy
  • Change site.com to your domain at files:
./docker-compose.prod.yml
./nginx/nginx/default.conf
./nginx/nginx/site.com.conf
  • Push configured project to your own git repository.
  • Connect via SSH to your server instance and git clone your repo.
  • Check configuration of Certbot, start the process of obtaining SSL certificate in test mode:
make certbot-test DOMAINS="site.com www.site.com" EMAIL=mail@site.com
  • If you see Congratulations!, all okay; start the process of obtaining SSL in production mode:
make certbot-prod DOMAINS="site.com www.site.com" EMAIL=mail@site.com
  • And now, check Nginx config:
make deploy-test
  • No errors? Deploy your Odoo instance:
make deploy-prod

Local development

  • For local development just use
make deploy-dev

You will have:

* Odoo14 on http://localhost:8069
* Adminer on http://localhost:8083
* MailHog web UI on http://localhost:8025/

About

Deploy Odoo as Docker container with Nginx and Let's Encrypt


Languages

Language:Shell 79.4%Language:Makefile 12.4%Language:Dockerfile 8.2%