Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

How do I install Odoo 12 Community Edition using docker compose file on an AWS EC2 instance?

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
installationawsec2DockerOdoo12.0
4 Răspunsuri
46506 Vizualizări
Imagine profil
Rupam Kundu

I am getting an "Internal Server Error" when trying to install Odoo 12 Community Edition on an AWS EC2 instance using a docker-compose file. My EC2 instance uses Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-1031-aws x86_64) operating system, Docker version 18.09.0 and docker-compose version 1.23.2. 

Here is my docker-compose.yml file:

version: '2'
services:
  web:
    image: odoo:12.0
    depends_on:
      - db
    ports:
      - "8069:8069"
    volumes:
      - odoo-web-data:/var/lib/odoo
      - ./config:/etc/odoo
      - ./addons:/mnt/extra-addons
  db:
    image: postgres:10
    environment:
      - POSTGRES_PASSWORD=odoo
      - POSTGRES_USER=odoo
      - PGDATA=/var/lib/postgresql/data/pgdata
    volumes:
      - odoo-db-data:/var/lib/postgresql/data/pgdata
volumes:
  odoo-web-data:
  odoo-db-data:


I can see the containers being created as is evidenced by the following output of the "docker ps -a" command:

CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                              NAMES

64e271db9565        odoo:12.0           "/entrypoint.sh odoo"    2 hours ago         Up 2 hours          0.0.0.0:8069->8069/tcp, 8071/tcp   ubuntu_web_1

10b3198e3230        postgres:10         "docker-entrypoint.s…"   2 hours ago         Up 2 hours          5432/tcp                           ubuntu_db_1

Moreover, the "docker-compose config" command returned the following output:

services:
  db:
    environment:
      PGDATA: /var/lib/postgresql/data/pgdata
      POSTGRES_PASSWORD: odoo
      POSTGRES_USER: odoo
    image: postgres:10
    volumes:
    - odoo-db-data:/var/lib/postgresql/data/pgdata:rw
  web:
    depends_on:
    - db
    image: odoo:12.0
    ports:
    - 8069:8069/tcp
    volumes:
    - odoo-web-data:/var/lib/odoo:rw
    - /home/ubuntu/config:/etc/odoo:rw
    - /home/ubuntu/addons:/mnt/extra-addons:rw
version: '2.0'
volumes:
  odoo-db-data: {}
  odoo-web-data: {}

What am I missing here?

0
Imagine profil
Abandonează
Imagine profil
Richard Siddall
Cel mai bun răspuns

Try running "docker logs ubuntu_web_1".  You may find that your database has not been initialized.

1
Imagine profil
Abandonează
Imagine profil
Ashish
Cel mai bun răspuns

Hello Rupam Kundu,

You have installed odoo 12 on which OS ? Ubuntu or Debian ? Can you please message me on ashish.mhatre@rediffmail.com if you have some steps written down to install that on docker.


0
Imagine profil
Abandonează
Imagine profil
Rupam Kundu
Autor Cel mai bun răspuns

Yes Richard, you are right. On running "docker logs ubuntu_web_1" I did find that my database had not been initialized. Finally my issue got resolved by implementing the fix suggested in https://github.com/odoo/odoo/issues/27447#issuecomment-441239348.

Particularly, I replaced my docker-compose.yml with the one at https://gist.github.com/byk0t/a9644fd2360a9662702568459df289fc and my issue got resolved.            

0
Imagine profil
Abandonează
Romain Buisson

@Rupam, I encounter the same issue but the Gist link you pasted does not solve it for me. The database is still not ready when Odoo container is started. Any idea why? What declaration in the docker-compose.yml file provided in the link makes it work for you?

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

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
How to install wkhtmltopdf package in ibm server?
installation Odoo12.0
Imagine profil
Imagine profil
1
iul. 20
16
Which is the best instance type to use on AWS to deploy ODOO in production?
aws ec2 rds
Imagine profil
Imagine profil
Imagine profil
2
nov. 24
6195
add external addon to odoo15 deploy with docker image in AWS
addons aws Docker
Imagine profil
Imagine profil
Imagine profil
2
sept. 23
4133
Odoo 12 Docker: Start odoo container with odoo-bin parameters Rezolvat
Docker odoo-bin Odoo12.0
Imagine profil
Imagine profil
1
ian. 24
18458
odoo docker-compose exited with code 1 Rezolvat
installation docker Docker
Imagine profil
Imagine profil
Imagine profil
3
sept. 21
8734
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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