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:
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
.env
|
||||
config/odoo.conf
|
||||
addons/
|
||||
*.log
|
||||
.DS_Store
|
||||
44
docker-compose.yml
Normal file
44
docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user