Compare commits

2 Commits

Author SHA1 Message Date
29a92d58c9 odoo 18 README 2026-09-11 07:19:23 +07:00
4456e5b043 odoo 18 2026-09-11 07:00:39 +07:00
29 changed files with 1505 additions and 5 deletions

3
.gitignore vendored
View File

@@ -1,4 +1,7 @@
.env
config/odoo.conf
config/odoo18.conf
odoo18/
enterprise/
*.log
.DS_Store

27
Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
FROM odoo:18
USER root
# Install extra system packages if needed
RUN apt-get update && apt-get install -y \
git \
python3-pip \
python3-dev \
build-essential \
libldap2-dev \
libsasl2-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
# Copy Odoo source requirements
#COPY ./odoo18/requirements.txt /tmp/requirements.txt
# Install Python dependencies
#RUN pip3 install --break-system-packages -r /tmp/requirements.txt
# Create working directory
WORKDIR /opt/odoo
USER odoo
CMD ["python3", "/opt/odoo/odoo-bin", "-c", "/etc/odoo/odoo.conf"]

1468
README_odoo18.md Normal file

File diff suppressed because it is too large Load Diff

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: