Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
9751 Lượt xem
I want to dockerize my odoo13 project and create an image from my project so I can deploy it later. I've searched and I couldn't find an example of Dockerfile and docker-compose file. How should I create these files in order to dockerize my project?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Latest 14.0 dockerfile: https://github.com/odoo/docker/tree/master/14.0

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

There is an official docker image on dockerhub:

https://hub.docker.com/_/odoo

S imple compose file (More at the link above): 

version: '2'
services:
  web:
    image: odoo:13.0
    depends_on:
      - db
    ports:
      - "8069:8069"
  db:
    image: postgres:10
    environment:
      - POSTGRES_DB=postgres
      - POSTGRES_PASSWORD=odoo
      - POSTGRES_USER=odoo

 

Ảnh đại diện
Huỷ bỏ
Tác giả

can you send dockerfile az well?

Tác giả

I don't want to use an image, I want to create one based on my own project which I cloned from git hub.

the dockerhub registery also holds the links to the dockerfiles....

in this case for Odoo 13 it is at : https://github.com/odoo/docker/blob/1bddcda4b2ef30c7443ebe0cae43d17f92aa43cd/13.0/Dockerfile

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 11 24
1776
2
thg 6 18
6957
1
thg 7 25
651
1
thg 6 25
10854
1
thg 5 23
3236