odoo 18
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,7 @@
|
||||
.env
|
||||
config/odoo.conf
|
||||
config/odoo18.conf
|
||||
odoo18/
|
||||
enterprise/
|
||||
*.log
|
||||
.DS_Store
|
||||
|
||||
27
Dockerfile
Normal file
27
Dockerfile
Normal 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"]
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user