1 Star 0 Fork 1

紫龙 / Nextcloud-Deploy-Docker

forked from AshJo / Nextcloud-Deploy-Docker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Nextcloud-Deploy-Docker

Using this project to deploy Nextcloud service (nginx-fdm-postgres-redis-cron) on your server. The redis and cron are optional, installing them may improve the performance. If you don't want them, just check out the older commit.

How to use:

0. Install docker and docker-compose

You must install docker and docker-compose before using this repo.

1. Clone this repo

git clone https://github.com/ynnie/Nextcloud-Deploy-Docker.git

2. Set database password

Open db.env file and modify POSTGRES_PASSWORD item.

3. Set your local data directory and hostname

Open and modify .env file.

# Local data directory
DATA_DIR_DB=/XXX/Nextcloud/db # The local directory for database.
DATA_DIR_APP=/XXX/Nextcloud/app # The local directory for Nextcloud.
DATA_DIR_CERT=/XXX/Nextcloud/certs # The local directory for certificates, ignore this if you don't need https.
DATA_DIR_VHOST=/XXX/Nextcloud/vhost.d # The local directory for vhost.d.
DATA_DIR_HTML=/XXX/Nextcloud/html # The local directory for html.

# Host name
HOST_NAME=cloud.xxx.com # Host name, set to you domain name or IP address.

**Note: **

You need to create above folders by yourself. If you have a domain and a SSL certificate, you need to setup the HOST_NAME in .env file and put your certificate files in the DATA_DIR_CERT folder. The certificate files should be nginx format and named as your_domain.crt and your_domain.key. If you don't have a domain, you can set HOST_NAME as you server's IP address.

4. Deploy with docker compose

Create and setup docker containers with docker-compose.

docker-compose up -d

At this point, you should be able to access your Nextcloud site with your browser.

部署Nextcloud服务

使用本项目可以利用docker-compose部署Nextcloud服务(nginx-fdm-postgres-redis-cron)。 其中,redis和cron是可选项目,不配置这两项Nextcloud也可以正常工作,但是配置这两项对性能会有提升。如果你不想配置它们,可以check out之前的commit。

使用方法:

0. 安装 docker 和 docker-compose

你必须提前将docker和docker-compose安装配置好。本项目不包含相关配置。

1. Clone本项目

git clone https://github.com/ynnie/Nextcloud-Deploy-Docker.git

2. 设置数据库密码

Open db.env file and modify POSTGRES_PASSWORD item.

打开db.env文件,将``POSTGRES_PASSWORD 配置为你的希望的数据库密码。

3. 设置本地数据目录和Hostname

修改 .env 文件:

# Local data directory
DATA_DIR_DB=/XXX/Nextcloud/db # The local directory for database.
DATA_DIR_APP=/XXX/Nextcloud/app # The local directory for Nextcloud.
DATA_DIR_CERT=/XXX/Nextcloud/certs # The local directory for certificates, ignore this if you don't need https.
DATA_DIR_VHOST=/XXX/Nextcloud/vhost.d # The local directory for vhost.d.
DATA_DIR_HTML=/XXX/Nextcloud/html # The local directory for html.

# Host name
HOST_NAME=cloud.xxx.com # Host name, set to you domain name or IP address.

**注意: **

在配置好上述目录之后,你需要自行创建这些目录。如果你有自己的域名和SSL证书,将HOST_NAME设置为你的域名地址,然后把证书文件放入DATA_DIR_CERT中。证书必须是nginx格式,并命名为your_domain.crtyour_domain.key。如果你没有自己的域名,则可以将HOST_NAME设置为你服务器的IP地址。

4. 使用docker-compose部署

利用docker-compose完成docker容器的创建和部署:

docker-compose up -d

至此,你应该已经可以通过浏览器访问你的Nextcloud网站了。

MIT License Copyright (c) 2020 Yingnan Nie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Deploy Nextcloud server with one command. 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/coolbeer/Nextcloud-Deploy-Docker.git
git@gitee.com:coolbeer/Nextcloud-Deploy-Docker.git
coolbeer
Nextcloud-Deploy-Docker
Nextcloud-Deploy-Docker
master

搜索帮助