简介

GreaterWMS是完全开源的仓库管理系统。该库存管理系统是目前福特亚太区售后物流仓储供应链流程。属于一站式应用,支持扫描仪 PDA、手机APP、桌面exe、网站。

https://gitee.com/Singosgu/GreaterWMS

https://www.56yhz.com/md/wcs/zh-CN

下载源代码

# 进入 docker 目录
cd /data

# 国内用户使用 gitee 克隆项目到您的本地或服务器
git clone https://gitee.com/Singosgu/GreaterWMS.git

# 国外用户还是用 github
git clone https://github.com/GreaterWMS/GreaterWMS.git

# 进入目录
cd GreaterWMS

Dockerfile

FROM --platform=linux/amd64 python:3.8.10-slim AS backend
RUN mkdir -p /GreaterWMS/templates
ADD ./requirements.txt /GreaterWMS/requirements.txt
COPY ./backend_start.sh /GreaterWMS/backend_start.sh
WORKDIR /GreaterWMS
ENV port = ${port}
#Installation foundation dependency
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
RUN apt-get clean
RUN apt-get update --fix-missing && apt-get upgrade -y
RUN apt-get install build-essential -y
RUN apt-get install supervisor  nodejs npm -y
RUN pip3 config set global.index-url http://mirrors.aliyun.com/pypi/simple/
RUN pip3 config set install.trusted-host mirrors.aliyun.com
RUN python3 -m pip install --upgrade pip
#Install supervisor daphne
RUN pip3 install supervisor
RUN pip3 install -U 'Twisted[tls,http2]'
RUN pip3 install -r requirements.txt
RUN pip3 install daphne
RUN npm config set registry https://mirrors.huaweicloud.com/repository/npm/ 
RUN npm install -g yarn --force
RUN yarn config set registry https://registry.npmmirror.com
RUN chmod +x /GreaterWMS/backend_start.sh
CMD ["/GreaterWMS/backend_start.sh"]

FROM --platform=linux/amd64 node:14.19.3-buster-slim AS front
COPY ./templates/package.json /GreaterWMS/templates/package.json
COPY ./web_start.sh /GreaterWMS/templates/web_start.sh
ENV port = ${port}
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
RUN apt-get clean
RUN apt-get update --fix-missing && apt-get upgrade -y
RUN cd  /GreaterWMS/templates
RUN npm config set registry https://mirrors.huaweicloud.com/repository/npm/ 
RUN npm install -g yarn --force
RUN yarn config set registry https://registry.npmmirror.com
RUN npm config set registry https://mirrors.huaweicloud.com/repository/npm/ && npm install -g @quasar/cli --force
RUN yarn install
RUN chmod +x /GreaterWMS/templates/web_start.sh
ENTRYPOINT ["/GreaterWMS/templates/web_start.sh"]

docker-compose.yml

version: '3.9'
networks:
  basic:
services:
  front:
    build:
      context: ./
      dockerfile: Dockerfile
      target: front
    container_name: greaterwms_front
    image: greaterwms/greaterwms:front
    restart: always
    privileged: true
    ports:
      - '8080:8080'
    depends_on:
      - backend
    volumes:
      - ./templates:/GreaterWMS/templates:rw
      - ./web_start.sh:/GreaterWMS/templates/web_start.sh
    networks:
      - basic
  backend:
    build:
      context: ./
      dockerfile: Dockerfile
      target: backend
    container_name: greaterwms_backend
    image: greaterwms/greaterwms:backend
    restart: always
    privileged: true
    volumes:
      - ./:/GreaterWMS/:rw
      - ./supervisord.conf:/etc/supervisor/supervisord.conf
    ports:
      - '8008:8008'
    environment:
      PYTHONUNBUFFERED: 1
    networks:
      - basic

修改 /docker/GreaterWMS/templates/public/statics/baseurl.txt 文件中的地址为容器对外访问的地址


  • 无标签
写评论...