# Odoo on YunoHost (Dockerized)

**URL:** https://forum.yunohost.org/t/odoo-on-yunohost-dockerized/726
**Category:** Support apps
**Tags:** english
**Created:** [July 19, 2015, 9:10pm UTC](https://forum.yunohost.org/t/odoo-on-yunohost-dockerized/726 "2015-07-19T21:10:55Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![scith](https://forum.yunohost.org/user_avatar/forum.yunohost.org/scith/32/918_2.png) [@scith](https://forum.yunohost.org/u/scith)
#### Post date: [July 19, 2015, 9:10pm UTC](https://forum.yunohost.org/t/odoo-on-yunohost-dockerized/726/1 "2015-07-19T21:10:55Z")

</div>

Hello,  
I drafted a first Odoo app for YunoHost as Odoo seems to be requested quite often… It would have been quite complex to make it running on the YunoHost server, I decided to Dockerize it (see my various Docker posts and apps)

**Here is the result: [https://github.com/scith/docker\_odoo\_ynh](https://github.com/scith/docker_odoo_ynh)**

**What works** : Odoo (I guess…)  
**What doesn’t work (yet)**: autorestart at server restart/crash, backup and restore, probably other things  
**Important** : This app MUST be installed on the domain’s root (e.g., [http://odoo.domain.tld/](http://odoo.domain.tld/)). As a result you cannot choose a custom path (e.g., [http://domain.tld/odoo/](http://domain.tld/odoo/) will NOT work). This is a consequence of Odoo’s behavior behind nginx.

I need to finetune the systemd startup file to be able to restart Odoo easily. I also need to get my head around Docker backup/restore processes to allow a seamless backup/restore with Moulinette

This means that this app is not yet suitable for production of course… Don’t go all in this app to run your business 😄

I would love your feedback

---

<div class="post-metadata">

### Author: ![tebo](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tebo/32/78_2.png) [@tebo](https://forum.yunohost.org/u/tebo)
#### Post date: [July 19, 2015, 10:05pm UTC](https://forum.yunohost.org/t/odoo-on-yunohost-dockerized/726/2 "2015-07-19T22:05:40Z")

</div>

Thanks, In my case, would like to use odoo for ngos  
I’ll give you feedback if get stuck with the app.

Moreover, if we can find a neat way to run docker properly on yunohost, it’s gonna be intresting for complex app like this one.

The question for me is, is this container (the official odoo one) is the good one. I don’t really know.

Good job, anyway.

---

<div class="post-metadata">

### Author: ![scith](https://forum.yunohost.org/user_avatar/forum.yunohost.org/scith/32/918_2.png) [@scith](https://forum.yunohost.org/u/scith)
#### Post date: [July 20, 2015, 6:21am UTC](https://forum.yunohost.org/t/odoo-on-yunohost-dockerized/726/3 "2015-07-20T06:21:43Z")

</div>

Thanks, please let me know 😄  
I think the official Odoo container is good enough. I looked at the others but they don’t differ much. One had PostgreSQL and Odoo in the same container though but I am not sure about it security-wise. It could solve the problem of autorestart though (and maybe ease backup/restore).

I have made a serie of apps around Docker: [Docker containers and management in YunoHost!](https://forum.yunohost.org/t/docker-containers-and-management-in-yunohost/678)

I think the core is working quite well. Docker is installed automatically on YunoHost in each of these apps. The containers can be managed as services on the YunoHost admin panel. Also the DockerUI apps gives a dedicated web administration interface (to remove images for example).

The standard process is:

1. Create your container using [https://github.com/scith/docker\_container\_ynh](https://github.com/scith/docker_container_ynh) (with ports redirected with -p 127.0.0.1:YNH\_PORT:CONTAINER\_PORT)
2. Create your YunoHost app using [https://github.com/scith/redirect\_ynh](https://github.com/scith/redirect_ynh)

I have also made an empty template to create apps like this Odoo one: [https://github.com/scith/docker\_template\_ynh](https://github.com/scith/docker_template_ynh) (feel free to fork and pull request)  
I still need to work on the backup/restore features though.

---

<div class="post-metadata">

### Author: ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)
#### Post date: [July 24, 2015, 12:34am UTC](https://forum.yunohost.org/t/odoo-on-yunohost-dockerized/726/4 "2015-07-24T00:34:47Z")

</div>

Hi

Where can I find the odoo installed to modify its pages.  
Normal the installed app are in var/www/app. But I can not find odoo anywhere.

---

<div class="post-metadata">

### Author: ![scith](https://forum.yunohost.org/user_avatar/forum.yunohost.org/scith/32/918_2.png) [@scith](https://forum.yunohost.org/u/scith)
#### Post date: [July 27, 2015, 5:59am UTC](https://forum.yunohost.org/t/odoo-on-yunohost-dockerized/726/5 "2015-07-27T05:59:49Z")

</div>

Hi  
It lives within a container so it is a bit more difficult…  
You could either SSh into the container  
Or go in /var/lib/docker/volumes and find the folder which has the data (you can use my dockerUI app to find it if you have many containers)

---

<div class="post-metadata">

### Author: ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)
#### Post date: [July 28, 2015, 2:32pm UTC](https://forum.yunohost.org/t/odoo-on-yunohost-dockerized/726/6 "2015-07-28T14:32:34Z")

</div>

Hi @scith

I can not access my server after I have restarted the server with docker.  
Is there any solution?

---

<div class="post-metadata">

### Author: ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)
#### Post date: [July 28, 2015, 3:15pm UTC](https://forum.yunohost.org/t/odoo-on-yunohost-dockerized/726/7 "2015-07-28T15:15:45Z")

</div>

I have solved the issue

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 18, 2023, 8:22pm UTC](https://forum.yunohost.org/t/odoo-on-yunohost-dockerized/726/9 "2023-01-18T20:22:27Z")

</div>


