Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

Trouble setting up docker compose for Odoo 18

Naroči se

Get notified when there's activity on this post

This question has been flagged
composeDockerpycharm
1 Odgovori
11279 Prikazi
Avatar
Alexander Munoz

Hello everybody,  I am trying to run odoo with docker compose.


Here a little context to what I am trying to do:


I forked the official Odoo repo and added a new folder for my custom addons and also a odoo.conf file: https://github.com/amunoz-pdc/odoo_18


There, I also have a Dockerfile to run Odoo from the code that I have there, not from an official image. Also I have a docker-compose.yml to run everything togheter. (Odoo from code and postgres)


I am having difficulties with the Dockerfile for Odoo. I tried with a few tutorials and also chatgpt but nothing seems to work.


Here the Dockefile:

# Use official Python image as a base
FROM python:3.12
LABEL authors="amunoz"

# Set working directory
WORKDIR /opt/odoo

# Install system dependencies
RUN apt-get update && \
apt-get install -y \
build-essential \
libxml2-dev \
libssl-dev \
libsasl2-dev \
libldap2-dev \
zlib1g-dev \
libjpeg-dev \
liblcms2-dev \
libblas-dev \
libatlas-base-dev \
git \
npm \
&& apt-get clean

# Copy your Odoo source code
COPY . /opt/odoo/

# Copy the Odoo configuration file
COPY odoo.conf /etc/odoo/odoo.conf

# Install Python dependencies
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

# Expose the Odoo port
EXPOSE 8069

# Set environment variables for Odoo
ENV ODOO_CONFIG=/etc/odoo/odoo.conf

# Start Odoo
CMD ["python", "odoo-bin", "-c", "/etc/odoo/odoo.conf"]


And here my docker-compose.yml file:

version: '3.8'

services:
odoo:
build: .
container_name: odoo
depends_on:
- db
ports:
- "8069:8069"
volumes:
- .:/opt/odoo
- /etc/odoo/odoo.conf:/etc/odoo/odoo.conf
environment:
- ODOO_CONFIG=/etc/odoo/odoo.conf
networks:
- odoo_network
restart: always

db:
image: postgres:15
container_name: odoo-db
environment:
POSTGRES_DB: odoo
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
volumes:
- odoo-db-data:/var/lib/postgresql/data
networks:
- odoo_network
restart: always

volumes:
odoo-db-data:

networks:
odoo_network:
driver: bridge


My goal Is to be able to run Odoo with docker compose from PyCharm.


I want to to develop and debug the code with PyCharm.


Any help would be greatly appreciated


Thank you in advance.



0
Avatar
Opusti
Avatar
Apiuser
Best Answer

"My goal Is to be able to run Odoo with docker compose from PyCharm.

I want to to develop and debug the code with PyCharm."

Then I would say save your time and don't build a docker. Its a PITA to debug there, and every time you make changes to the code (python) you will need to stop the container and start it again.

That said, if you insist on building a developement environment in a docker, what issue ddid you run into? What is not working?

0
Avatar
Opusti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Accidantly pruned my docker volume of the odoo-web container... can I reimport old Attachments?
compose docker Docker odoo16features
Avatar
0
okt. 23
2932
v16: unresolved reference 'odoo'
pycharm
Avatar
Avatar
Avatar
3
mar. 25
4276
how to Install odoo 15 with docker? Solved
Docker
Avatar
Avatar
Avatar
Avatar
Avatar
4
dec. 23
47570
where is the POS Odoo logo located on Odoo installed on Docker? - Odoo 16 Community version
Docker
Avatar
Avatar
1
jan. 23
4417
How to setup odoo project using Odoo doodba ?
Docker
Avatar
Avatar
1
mar. 24
7609
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now