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]
This commit is contained in:
2026-09-07 12:09:17 +07:00
commit 21adb2e616
2 changed files with 49 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
.env
config/odoo.conf
addons/
*.log
.DS_Store

44
docker-compose.yml Normal file
View File

@@ -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: