Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Cervecería
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y soporte técnico
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Explorar todos los sectores
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Servicios para partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Odoo in Docker on Synology NAS

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
3 Respuestas
12753 Vistas
Avatar
Yannick Heyne

Hello Odoo friends,

I have a problem, I'm more of a Windows person and am now trying Linux, i.e. Docker.
I'm running Odoo16 on a Docker (Syno NAS). Now third party wants to install APPs.
I created a folder and everything else so far. I put the app that I wanted in there. I also mounted it, but it doesn't appear in Odoo so I can install it. Can someone please tell me how and where I have to do this so that I can put the APPs in a folder on the NAS and then install them in Odoo.

Thank you in advance

0
Avatar
Descartar
Avatar
Jort de Vreeze
Mejor respuesta

I have a test server running on a Synology NAS. I use the following docker-compose.yml:

version: '3.8'

services:

postgres:
container_name: odoo-postgres
image: postgres:14.1-alpine
networks:
- web
ports:
- 5432:5432
environment:
POSTGRES_DB: postgres
POSTGRES_USER: odoo
POSTGRES_PASSWORD: secret
volumes:
- ./postgres-data:/var/lib/postgresql/data
restart: always

odoo:
container_name: odoo
image: odoo:15.0
networks:
- web
environment:
HOST: postgres
USER: odoo
PASSWORD: secret
depends_on:
- postgres
ports:
- 8069:8069
volumes:
- ./config:/etc/odoo
- ./extra-addons:/mnt/extra-addons
- ./data:/var/lib/odoo
restart: always
links:
- postgres

networks:
web:
external: true
name: web

Please make sure that you have configured /config/odoo.conf correctly and included your module in the addons_path:

[options]
addons_path = /usr/lib/python3/dist-packages/odoo/addons, /mnt/extra-addons
...

In Odoo you also have to 'Update App List' in the Apps module. This item is visible when you activate the developer mode under 'Settings'. For more information, you can also check out my blog post: https://jortdevreeze.com/blog/odoo-2/dock-stack-launch-odoo-deployment-with-docker-and-portainer-4

I hope this helps!

0
Avatar
Descartar
Avatar
Chris Mann
Mejor respuesta

I've been using Odoo on Docker with Synology NAS for a while.
If you are using it behind the Synology reverse proxy (NGINX) for LetsEncrypt, I always follow the script below to lock it down further for better performance and security.

Synology Tweaks:
1. Login via SSH
2. Go to /usr/syno/share/nginx, make a backup copy of both gzip.mustache and HSTS.mustache
3. Edit gzip - Add the following lines to the bottom:
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
4. Edit HSTS.mustache - Add the following:
add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload" always;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header Referrer-Policy "strict-origin";
add_header X-XSS-Protection "1; mode=block";
add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
5. Run nginx -t, systemctl reload nginx, then systemctl restart nginx
6. Test via Gtmetrix, SSLTest and securityheaders.com

0
Avatar
Descartar
Avatar
Yannick Heyne
Autor Mejor respuesta

Ok that helps me, but that will be my problem, that the module is not correct in the odoo.conf. My problem, I just realized that I can't find / open it. I also looked at your blog. You install the Odoo via stack and I simply installed it via New Container. That's probably why I wasn't able to store the data correctly there.


0
Avatar
Descartar
Jort de Vreeze

You need to make the /etc/odoo, /mnt/extra-addons, and /var/lib/odoo folders persistent (i.e., use volumes). What you could do is ssh into your NAS and in you odoo folder add the docker-compose.yml file:

$ echo "" > docker-compose.yml

And then create the folders as specified in the docker-compose.yml file below:

$ mkdir config
$ mkdir extra-addons
$ mkdir data

And then build and run your containers:

$ sudo docker-compose up -d --build

Now these directories will contain the data you need. Alternatively, is that you create volumes and use these (e.g., docker volume create volume_name) and use these. These folders can be found in my Synology NAS under: '/volume1/@docker/volumes/volume_name'

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones empresariales de código abierto que cubre todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

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