Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use docker to deploy nextcloud Network disk

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to use docker to deploy nextcloud network disk, the article is very detailed, has a certain reference value, interested friends must read it!

NextCloud you can share any files or folders on your computer and synchronize them with the NextCloud server. When you put files in a shared directory, they are immediately synchronized to the NextCloud server and all associated NextCloud / ownCloud desktop clients, Android clients, or iOS clients.

Install docker

Yum install docker-io-ydocker-v / / View version systemctl start docker / / Boot dockersystemctl enable docker / / set Boot self-boot docker info / / if docker has been started, global information will be output

Install docker-compose

The copy code is as follows:

Curl-L https://get.daocloud.io/docker/compose/releases/download/1.21.2/docker-compose-`uname-s`-`uname-m` > / usr/local/bin/docker-compose

Add execution permissions to the installation script

Chmod + x / usr/local/bin/docker-compose

Write docker-compose files

Nextcloud: image: nextcloud container_name: nextcloud_web links:-nextcloud-db:nextcloud-db environment:-UID=1000-GID=1000-UPLOAD_MAX_SIZE=5G-APC_SHM_SIZE=128M-OPCACHE_MEM_SIZE=128-CRON_PERIOD=15m-TZ=Aisa/Shanghai-ADMIN_USER=admin-ADMIN_PASSWORD=admin@tencent-DOMAIN=localhost-DB_TYPE=mysql-DB_NAME=nextcloud-DB_USER=nextcloud-DB_PASSWORD=nextcloud-DB_HOST=nextcloud-db volumes: # Files will be placed in the host `/ root/ nextcloud` directory If it does not exist,-/ root/nextcloud/data:/var/www/html expose:-80 ports: # Host port: image port-80:80/tcp restart: alwaysnextcloud-db: image: mariadb:10 container_name: nextcloud_db volumes: # Database files will be placed in the host's `/ root/nextcloud/ db` directory If it does not exist, automatically create-/ root/nextcloud/db:/var/lib/mysql environment:-MYSQL_ROOT_PASSWORD=root-MYSQL_DATABASE=nextcloud-MYSQL_USER=nextcloud-MYSQL_PASSWORD=nextcloud restart: always

Save and exit after editing, and execute it in the same level directory of docker-compose.yml:

Docker-compose up-d

Check to see if the container remembers to start

Docker ps-a

Access nextcloud through a browser after successful startup. Refer to docker-compose for the following information

After all the initialization configurations have been completed, wait about half a minute for the installation to complete before you can see the home directory page of Nextcloud.

If you need to delete the files and folders that come with the system by default, you need to delete all files in the skeleton directory

Cd / root/nextcloud/data/core/skeletonrm-rf *

After logging in, the user will not see the folder that comes with the system.

You can add users and groups to nextcloud

Configure an email server

To enable the account registration function, you need to install the Registration plug-in. Find the Registration plug-in and click download to enable it.

Open the home page and the registration page will appear. Click Register.

Enter your email address and your mailbox will receive a registration email, which can be completed according to the prompt.

You need to create a folder for the user, download the Group folders plug-in, and enable

You can also share folders with groups and users, and you can set permissions

There are also many plug-ins that can be downloaded through "+ apps".

The above is all the contents of the article "how to deploy a nextcloud network disk using docker". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report