• docker 安装 filerun 及 nextcloud


    要求:centos7 内核 在4或5版本

               docker-io 在19或20

    yum install docker-ce docker-ce-cli containerd.io

    systemctl start docker

    systemctl enable docker.service

    systemctl enable containerd.service

    安装docker面板  portainer

    mkdir /filerun /filerun/html /filerun/user-files /filerun/db

    docker volume create portainer_data   

    docker run -d -p 9000:9000 -p 8000:8000 --name portainer-ce --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

    http://ip:9000  访问面板

    portainer中安装filerun

    注册dockHUB帐号

     portainer的 Registries 中登记dockerhub的帐号     

    Create stack

    复制以下docker -composer样本到  web edit中

    version: '2'

    services:
    db:
    image: mariadb:10.1
    environment:
    MYSQL_ROOT_PASSWORD: li19099*
    MYSQL_USER: root
    MYSQL_PASSWORD: li19099*
    MYSQL_DATABASE: filerundb
    volumes:
    - /filerun/db:/var/lib/mysql

    web:
    image: afian/filerun:libreoffice
    environment:
    FR_DB_HOST: db
    FR_DB_PORT: 3306
    FR_DB_NAME: filerundb
    FR_DB_USER: root
    FR_DB_PASS: li19099*
    APACHE_RUN_USER: www-data
    APACHE_RUN_USER_ID: 33
    APACHE_RUN_GROUP: www-data
    APACHE_RUN_GROUP_ID: 33
    depends_on:
    - db
    links:
    - db:db
    ports:
    - "80:80"
    volumes:
    - /filerun/html:/var/www/html
    - /filerun/user-files:/user-files

    下拉到  deploy the stack

    nextcloud 和 filerun一样复制以下yml

    version: '2'

    volumes:
    nextcloud:
    db:

    services:
    db:
    image: mariadb
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
    - db:/var/lib/mysql
    environment:
    - MYSQL_ROOT_PASSWORD=nextcloud
    - MYSQL_PASSWORD=nextcloud
    - MYSQL_DATABASE=nextcloud
    - MYSQL_USER=nextcloud

    app:
    image: nextcloud
    restart: always
    ports:
    - 8080:80
    links:
    - db
    volumes:
    - nextcloud:/var/www/html
    environment:
    - MYSQL_PASSWORD=nextcloud
    - MYSQL_DATABASE=nextcloud
    - MYSQL_USER=nextcloud
    - MYSQL_HOST=db

    主机上查看nextcloud容器的文件 /var/lib/docker/volumes/nextcloud_nextcloud/_data

    更多查看:https://registry.hub.docker.com/_/nextcloud

    安装 oos  office online server

    windows2016  域控制角色 poweshell 运行

    Add-WindowsFeature Web-Server,Web-Mgmt-Tools,Web-Mgmt-Console,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-Static-Content,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Security,Web-Filtering,Web-Windows-Auth,Web-App-Dev,Web-Net-Ext45,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,NET-Framework-Features,NET-Framework-45-Features,NET-Framework-Core,NET-Framework-45-Core,NET-HTTP-Activation,NET-Non-HTTP-Activ,NET-WCF-HTTP-Activation45,Windows-Identity-Foundation,Server-Media-Foundation

    成功后有以下输出:

    Success Restart Needed Exit Code Feature Result
    ------- -------------- --------- --------------
    True No NoChangeNeeded {}

    插入ISO  安装 Office Onlie Server  

    完成后重启

    powershell     Import-Module -Name OfficeWebApps

  • 相关阅读:
    物理分页和逻辑分页扫盲
    JAVA集合操作的利器:CollectionUtils
    关于MYSQL表记录字段换行符回车符处理
    JSONObject依赖包
    Spring Mvc中@ResponseBody中文乱码解决,以及修改返回的Content-Type
    Python运行出错情况
    Python编码相关理解
    Python访问Access数据库
    Python
    android开发(1)
  • 原文地址:https://www.cnblogs.com/li19099/p/14746903.html
Copyright © 2020-2023  润新知