DocHub 程序是开源免费的,不存在,所以没有所谓的售后,不接受任何答疑求助。每天上班要工作,下班要生活、休闲、学习以及对开源项目做改进和优化…请理解和见谅,谢谢。

使用 Docker 安装部署 DocHub 文库系统

如果您使用 Docker 进行部署,我也默认您对 Docker 也算比较熟悉…

Dockerfile

 

FROM ubuntu:16.04
MAINTAINER “TruthHun <TruthHun@QQ.COM>”
# 阿里云源设置
RUN echo “deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse “\
“\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse “\
“\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse “\
“\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse “\
“\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse “\
“\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse “\
“\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse “\
“\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse “\
“\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse “\
“\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse” > /etc/apt/sources.list
# 安装字符编码支持
RUN apt update -y && apt install -y locales && apt install -y unzip && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
# 安装中文字体支持等相关依赖
RUN apt update -y && apt install -y fonts-wqy-zenhei fonts-wqy-microhei wget libreoffice imagemagick pdf2svg poppler-utils xdg-utils wget xz-utils python \
&& wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin
# 下载并解压 DocHub 程序
RUN mkdir -p /www/dochub && wget https://95gk.com/DocHub.V2.4_linux_amd64.zip && unzip DocHub.V2.4_linux_amd64.zip -d /www/dochub/ && rm DocHub.V2.4_linux_amd64.zip
RUN chmod 0777 -R /www/dochub
EXPOSE 8090
VOLUME /www/dochub
WORKDIR /www/dochub
CMD [ “./DocHub” ]

创建镜像

docker build -t xikuqi/dochub:v2.4 .

运行容器

  1. docker run -d -p 8090:8090 –name dochub-v2.4 xikuqi/dochub:v2.4
  2. docker run -p 3306:3306 –name mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.6
  3. docker run –name myadmin -d -e PMA_HOST=172.17.0.3 -p 8080:80 phpmyadmin/phpmyadmin
  4. docker run -p 9000:9000 –name minio \
    -d –restart=always \
    -e “MINIO_ACCESS_KEY=admin” \
    -e “MINIO_SECRET_KEY=admin123456” \
    -v /home/data:/data \
    -v /home/config:/root/.minio \
    minio/minio server /data