Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
1622 Zobrazení

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


Avatar
Zrušit
Autor Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
kvě 25
1356
1
čvc 25
402
1
čvn 25
1035
0
kvě 25
1148
2
dub 25
3144