GoodERP用户手册
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.8KB

安装docker

安装docker-compose

新建一个空目录在里面存储和运行以下文件

Dockerfile文件

from odoo:13.0
user root
RUN pip3 install --upgrade pip
RUN pip3 install paramiko -i https://pypi.douban.com/simple/
RUN pip3 install docxtpl -i https://pypi.douban.com/simple/
RUN sed -i "s/http:\/\/deb.debian.org/https:\/\/mirrors.163.com/g" /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y libreoffice
user odoo

运行 docker build -t gooderp:13 .

注意最后有一个点,代表当前目录

docker-compose.yml文件

注意:文件里 /Users/jeff 是我电脑上的目录,你要换成你自己的目录

version: '2'
services:
  db:
    container_name: pgsql
    image: postgres:10.0
    environment:
      - POSTGRES_PASSWORD=odoo
      - POSTGRES_USER=odoo
      - POSTGRES_DB=postgres
      - PGDATA=/var/lib/postgresql/data/pgdata
    restart: always             # run as a service
    ports :
        - "25432:5432"
    volumes:
      - ./log/pgsql:/var/log/postgresql
      - odoo-db-data:/var/lib/postgresql/data/pgdata
  gooderp13:
    container_name: gooderp    
    image: gooderp:13
    depends_on:
      - db
    ports:
      - "8888:8069"
    tty: true
    command: -- -c /mnt/extra-addons/docker13.conf
    volumes:
      - /Users/jeff:/mnt/extra-addons
      - ./log:/var/log/odoo
      - odoo-web-data:/var/lib/odoo      
    restart: always             # run as a service
volumes:
  odoo-web-data:
  odoo-db-data:

docker13.conf文件

[options]
addons_path = /mnt/extra-addons/gooderp
db_host = db
db_port = 5432
db_user = odoo
db_password = odoo

最后的文件结构是这样:

your_directory

  • Dockerfile
  • docker-compose.yml
  • docker13.conf
  • gooderp/

运行 docker-compose up 即可,端口号8888

运行 docker-compose down停止

上海开阖软件有限公司 沪ICP备12045867号-1