odoo-docker-deployment
What it does
This tool helps set up Odoo to run in containers (Docker). It creates the necessary files for Odoo and its database to work together securely and efficiently.
When to use it
- βSetting up an Odoo test environment on your computer.
- βDeploying Odoo to a server on the internet.
- βTroubleshooting issues when Odoo doesn't start or connect to the database.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/odoo-docker-deployment/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βSet up Odoo for production on a server.β
5 new skills a week. 1 minute to read.
How it works
You describe what you need, and the tool generates the Docker configuration files. Then, you use simple commands to start, stop, or view Odoo's logs.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Odoo Docker Deployment
Overview
This skill provides a complete, production-ready Docker setup for Odoo, including PostgreSQL, persistent file storage, environment variable configuration, and an optional Nginx reverse proxy with SSL. It covers both development and production configurations.
When to Use This Skill
- Spinning up a local Odoo development environment with Docker.
- Deploying Odoo to a VPS or cloud server (AWS, DigitalOcean, etc.).
- Troubleshooting Odoo container startup failures or database connection errors.
- Adding a reverse proxy with SSL to an existing Odoo Docker setup.
How It Works
- Activate: Mention
@odoo-docker-deploymentand describe your deployment scenario. - Generate: Receive a complete
docker-compose.ymlandodoo.confready to run. - Debug: Describe your container error and get a diagnosis with a fix.
Examples
Example 1: Production docker-compose.yml
# Note: The top-level 'version' key is deprecated in Docker Compose v2+
# and can be safely omitted. Remove it to avoid warnings.
services:
db:
image: postgres:15
restart: always
environment:
POSTGRES_DB: odoo
POSTGRES_USER: odoo
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- odoo-net
odoo:
image: odoo:17.0
restart: always
depends_on:
db:
condition: service_healthy
ports:
- "8069:8069"
- "8072:8072" # Longpolling for live chat / bus
environment:
HOST: db
USER: odoo
PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- odoo-web-data:/var/lib/odoo
- ./addons:/mnt/extra-addons # Custom modules
- ./odoo.conf:/etc/odoo/odoo.conf
networks:
- odoo-net
volumes:
postgres-data:
odoo-web-data:
networks:
odoo-net:
Example 2: odoo.conf
[options]
admin_passwd = ${ODOO_MASTER_PASSWORD} ; set via env or .env file
db_host = db
db_port = 5432
db_user = odoo
db_password = ${POSTGRES_PASSWORD} ; set via env or .env file
; addons_path inside the official Odoo Docker image (Debian-based)
addons_path = /mnt/extra-addons,/usr/lib/python3/dist-packages/odoo/addons
logfile = /var/log/odoo/odoo.log
log_level = warn
; Worker tuning for a 4-core / 8GB server:
workers = 9 ; (CPU cores Γ 2) + 1
max_cron_threads = 2
limit_memory_soft = 1610612736 ; 1.5 GB β soft kill threshold
limit_memory_hard = 2147483648 ; 2.0 GB β hard kill threshold
limit_time_cpu = 600
limit_time_real = 1200
limit_request = 8192
Example 3: Common Commands
# Start all services in background
docker compose up -d
# Stream Odoo logs in real time
docker compose logs -f odoo
# Restart Odoo only (not DB β avoids data risk)
docker compose restart odoo
# Stop all services
docker compose down
# Backup the database to a local SQL dump
docker compose exec db pg_dump -U odoo odoo > backup_$(date +%Y%m%d).sql
# Update a custom module without restarting the server
docker compose exec odoo odoo -d odoo --update my_module --stop-after-init
Best Practices
- β
Do: Store all secrets in a
.envfile and reference them with${VAR}β never hardcode passwords indocker-compose.yml. - β
Do: Use
depends_on: condition: service_healthywith a PostgreSQL healthcheck to prevent Odoo starting before the DB is ready. - β Do: Put Nginx in front of Odoo for SSL termination (Let's Encrypt / Certbot) β never expose Odoo directly on port 80/443.
- β
Do: Set
workers = (CPU cores Γ 2) + 1inodoo.confβworkers = 0uses single-threaded mode and blocks all users. - β Don't: Expose port 5432 (PostgreSQL) to the public internet β keep it on the internal Docker network only.
- β Don't: Use the
latestor17Docker image tags in production β always pin to a specific patch-level tag (e.g.,odoo:17.0). - β Don't: Mount
odoo.confand rely on it for secrets in CI/CD β use Docker secrets or environment variables instead.
Limitations
- This skill covers self-hosted Docker deployments β Odoo.sh (cloud-managed hosting) has a completely different deployment model.
- Horizontal scaling (multiple Odoo containers behind a load balancer) requires shared filestore (NFS or S3-compatible storage) not covered here.
β¦
FAQ
What is Docker?
Docker is a program that allows you to run other programs (like Odoo) in isolated 'boxes' called containers. This simplifies installation and prevents conflicts.
What is `docker-compose.yml`?
It's a file that describes how multiple containers (in this case, Odoo and the database) should work together. It defines their configurations, networks, and storage volumes.
Why use Nginx?
Nginx acts as a gatekeeper in front of Odoo, managing access, adding security (like SSL certificates for HTTPS), and distributing traffic.
Details
Original description by the author
Production-ready Docker and docker-compose setup for Odoo with PostgreSQL, persistent volumes, environment-based configuration, and Nginx reverse proxy.
Popularity
- GitHub stars
- 48k
- Ranking position
- #5336
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.