NextCloud安装及配置(docker-compose)

景宏富
2023-12-01

NextCloud的安装与配置(CentOs7_docker-compose)

前置下载及安装地址

Centos 下载 docker
https://download.docker.com/linux/centos/

Centos 7.3 docker yum
http://docker-release-blue-prod.s3-website-us-east-1.amazonaws.com/linux/centos/7/x86_64/stable/Packages/

Centos 静态包
http://docker-release-blue-prod.s3-website-us-east-1.amazonaws.com/linux/static/stable/x86_64/

所有系统下载地址
https://download.docker.com

Linux 下载地址
https://download.docker.com/linux

Docker 20.10下载
http://docker-release-blue-prod.s3-website-us-east-1.amazonaws.com/linux/centos/7/x86_64/stable/Packages/docker-ce-20.10.0-3.el7.x86_64.rpm

一、compose的配置及启动

docker-compose配置文件

version: "3"
services:
  nextcloud:
    image: nextcloud
    container_name: nextcloud
    stdin_open: true
    tty: true
    restart: always
    ports:
      - 9999:80
    volumes:
      - ./nextcloud:/var/www/html
      - ./apps:/var/www/html/custom_apps
      - ./config:/var/www/html/config
      - ./data/nextcloud:/var/www/html/data
    privileged: true

在当前目录下创建文件夹

mkdir apps

mkdir config

mkdir data

使用docker-compose启动(没有本地镜像会自动下载)

docker-compose up -d

打开网页 ip:9999,输入帐号密码,数据库帐号密码等

二、nextcloud应用下载并安装(OnlyOffice&ES在线办公&全文搜索)

打开nextcloud并在应用下选择office&text选择OnlyOffice下载并启用

打开nextcloud并在应用下选择search选择Full text search - Elasticsearch Platform下载并启用

也可以在https://apps.nextcloud.com/categories/search中下载并解压到nextcloud的apps目录下

问题解决:国内服务器nextcloud无法显示app商店

找到config目录下的config.php文件添加如下内容:

‘appstoreenabled’ => true,

‘appstoreurl’ => ‘orcy.net/ncapps/v1/’ ,

其他拓展应用同理可实现。

 类似资料: