From 21adb2e6166d7399a1602438be65048f2aba85b6 Mon Sep 17 00:00:00 2001 From: Alex Ardhian Date: Mon, 7 Sep 2026 12:09:17 +0700 Subject: [PATCH] Initial commit: Odoo 19.0 Community + PostgreSQL 16 docker-compose.yml: - odoo:19.0 (port 18070 ke 8069 container) - postgres:16 (healthcheck pg_isready) Fitur Odoo default (product, sale, purchase, stock, crm, base_import) untuk: Item im\x...[truncated] --- .gitignore | 5 +++++ docker-compose.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .gitignore create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16c8681 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.env +config/odoo.conf +addons/ +*.log +.DS_Store diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ade2057 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,44 @@ +version: '3.8' + +services: + db: + image: postgres:16 + container_name: odoo-erp-db + restart: unless-stopped + env_file: .env + environment: + - POSTGRES_USER=${POSTGRES_USER:-odoo} + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - POSTGRES_DB=${POSTGRES_DB:-postgres} + volumes: + - erp_pgdata:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-odoo} -d ${POSTGRES_DB:-postgres}"] + interval: 10s + timeout: 5s + retries: 10 + + odoo: + image: odoo:19.0 + container_name: odoo-erp + restart: unless-stopped + env_file: .env + environment: + - HOST=db + - PORT=5432 + - USER=${POSTGRES_USER:-odoo} + - PASSWORD=${POSTGRES_PASSWORD} + depends_on: + db: + condition: service_healthy + ports: + - "18070:8069" + volumes: + - erp_webdata:/var/lib/odoo + - ./config:/etc/odoo + - ./addons:/mnt/extra-addons + command: ["odoo", "-c", "/etc/odoo/odoo.conf"] + +volumes: + erp_pgdata: + erp_webdata: