This commit is contained in:
2026-09-11 07:00:39 +07:00
parent 85c0a9bb63
commit 4456e5b043
28 changed files with 37 additions and 5 deletions

View File

@@ -1,5 +1,3 @@
version: '3.8'
services:
db:
image: postgres:16
@@ -12,6 +10,8 @@ services:
- POSTGRES_DB=${POSTGRES_DB:-postgres}
volumes:
- erp_pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-odoo} -d ${POSTGRES_DB:-postgres}"]
interval: 10s
@@ -19,7 +19,7 @@ services:
retries: 10
odoo:
image: odoo:19.0
build: .
container_name: odoo-erp
restart: unless-stopped
env_file: .env
@@ -35,8 +35,10 @@ services:
- "18070:8069"
volumes:
- erp_webdata:/var/lib/odoo
- ./config:/etc/odoo
- ./addons:/mnt/extra-addons
- ./config/odoo18.conf:/etc/odoo/odoo.conf
- ./odoo18:/opt/odoo
- ./custom_addons:/mnt/extra-addons
- ./enterprise:/mnt/enterprise
command: ["odoo", "-c", "/etc/odoo/odoo.conf"]
volumes: