Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

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

Subscribe

Get notified when there's activity on this post

This question has been flagged
installationawsec2DockerOdoo12.0
4 Replies
46498 Views
Avatar
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
Avatar
Discard
Avatar
Richard Siddall
Best Answer

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

1
Avatar
Discard
Avatar
Ashish
Best Answer

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
Avatar
Discard
Avatar
Rupam Kundu
Author Best Answer

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
Avatar
Discard
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!

Sign up
Related Posts Replies Views Activity
How to install wkhtmltopdf package in ibm server?
installation Odoo12.0
Avatar
Avatar
1
Jul 20
16
Which is the best instance type to use on AWS to deploy ODOO in production?
aws ec2 rds
Avatar
Avatar
Avatar
2
Nov 24
6194
add external addon to odoo15 deploy with docker image in AWS
addons aws Docker
Avatar
Avatar
Avatar
2
Sep 23
4132
Odoo 12 Docker: Start odoo container with odoo-bin parameters Solved
Docker odoo-bin Odoo12.0
Avatar
Avatar
1
Jan 24
18443
odoo docker-compose exited with code 1 Solved
installation docker Docker
Avatar
Avatar
Avatar
3
Sep 21
8732
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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