Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
1079 มุมมอง

Ubuntu 20.04 .6 LTS, Pycharm Community

at last I have installed Odoo 16 on Docker and it runs fine on web browser, showing create database page from where i can start. during my search for it I found below is github link which I followed: (sorry, i can't add a link, but a modified link)

github(dot)com/bithabib/docker_course

now I want to configure Pycharm for development tasks, please help to configure Pycharm, also if I have multiple Docker Containers for multiple Odoo versions separately v15, v16, v17 etc. how to configure ? how to start/stop specific container? how to set custom addons folder? how to set addons path? etc.


with regards


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Don't know when I will be able to Reply to the guy who Answered. when I am trying to use Comment below the Answer, it is not allowed to use Comment which is very disturbing, poster can't see my comment below his or her Answer. Pray for us please.

@Rodrigo Moya , please check below link. ( I can't enter Links, Screenshots, can't Comment on another users posts etc. )

www(.)odoo(.)com/forum/help-1/odoo-docker-containers-how-to-handle-separately-different-versions-268232

with regards

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Roshan : 

I I starting to work with pycharm but then I change to VS Code. I think is more friendly, specially when using dockers and python.


But in any case, the only thing that you need is to configure docker-compose.yml in a way that the addons and the pg_data folder make mounted outside the docker container. Then, you could configure pycharm to use the folder containing the addons, or the addon specifically you need.


Here is the docker-compose that I use. In my case, this configuration is practical, so if I need to work in another odoo version I just switch then in the file.


Hope it helps.




services:

​db:

​container_name: odoodb

​hostname: odoo15db

​image: postgres:12

​environment:

​- POSTGRES_USER=odoo15

​- POSTGRES_PASSWORD=odoo15

​- POSTGRES_DB=odoo15

​- PGDATA = /var/lib/postgresql/data/pgdata

​networks:

- odoonetwork

ports:

​- "5432:5432"

volumes:

​- ./data/pgdata:/var/lib/postgresql/data

web:

​container_name: odooweb

​image: odoo:15

​build: .

​depends_on:

​- db

​ports: - "8015:8015"

​volumes:

​- odoo-web-data:/var/lib/odoo

​- ./config:/etc/odoo

​- ./addons:/mnt/addons

​- ./custom_addons:/mnt/custom_addons

​- ./data/odoo:/var/lib/odoo

​environment:

​- VIRTUAL_HOST= www.odoo15.mac

​command: "/usr/bin/odoo -c /etc/odoo/odoo.conf"

​networks:

​- odoonetwork

​volumes:

​odoo-db-data:

​odoo-web-data:

​networks:

​odoonetwork:

​driver: bridge

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
พ.ค. 25
836
0
พ.ค. 25
166
2
เม.ย. 25
2426
3
มี.ค. 25
2624
1
ก.พ. 25
777