- Docker
18.x+
- Docker Compose
1.27.x+
- 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 protected]
- 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 protected]
- And now, check Nginx config:
make deploy-test
- No errors? Deploy your Odoo instance:
make deploy-prod
- 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/