How to deploy nextcloud network disk using docker

How to deploy nextcloud network disk using docker

NextCloud You can share any files or folders on your computer and synchronize them with the NextCloud server. When you put files into 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 -y
docker -v // View the version systemctl start docker // Start docker

systemctl enable docker // Set the system to start automatically at boot docker info // If docker is already started, global information will be output

Install docker-compose

Copy the code 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

Writing a docker-compose file

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:

   #The file will be placed in the host's /root/nextcloud directory. If it does not exist, it will be created automatically - /root/nextcloud/data:/var/www/html

 expose:

  - 80

 ports:

  # Host port: mirror port - 80:80/tcp

 restart: always



nextcloud-db:

 image: mariadb:10

 container_name: nextcloud_db

 volumes:

   #The database file will be placed in the host's /root/nextcloud/db directory. If it does not exist, it will be created automatically - /root/nextcloud/db:/var/lib/mysql

 environment:

  -MYSQL_ROOT_PASSWORD=root

  -MYSQL_DATABASE=nextcloud

  -MYSQL_USER=nextcloud

  -MYSQL_PASSWORD=nextcloud

 restart: always

After editing, save and exit, and execute in the same directory as docker-compose.yml:

docker-compose up -d

Check whether the container is started

docker ps -a

After successful startup, access nextcloud through the browser. For the following information, refer to docker-compose

After all the initial configurations are completed, wait for about half a minute for the installation to complete and you can see the Nextcloud home directory page

If you need to delete the system's default files and folders, you need to delete all files in the skeleton directory.

cd /root/nextcloud/data/core/skeleton
rm -rf *

After the user logs in, he cannot see the system's own folders

You can add users and groups to nextcloud

Configuring the Email Server

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

Open the homepage, the registration page will appear, click Register

Enter your email address, and you will receive a registration email in your mailbox. Follow the prompts to complete the registration.

You need to create folders for users, download the Group folders plug-in, and enable it.

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

There are also many plug-ins that can be downloaded and experienced through "+App".

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Tutorial on building nextcloud personal network disk with Docker
  • Docker+nextcloud to build a personal cloud storage system
  • Docker uses nextcloud to build a private Baidu cloud disk
  • How to install and deploy NextCloud private network disk using docker

<<:  Detailed explanation of Vue's hash jump principle

>>:  MySQL 5.7.18 binary package installation tutorial under Linux (without default configuration file my_default.cnf)

Recommend

Html/Css (the first must-read guide for beginners)

1. Understanding the meaning of web standards-Why...

Detailed explanation of using Docker to build externally accessible MySQL

Install MySQL 8.0 docker run -p 63306:3306 -e MYS...

CSS complete parallax scrolling effect

1. What is Parallax scrolling refers to the movem...

Learn javascript iterator

Table of contents Introduction What does an itera...

Detailed explanation of Linux kernel macro Container_Of

Table of contents 1. How are structures stored in...

Detailed explanation of the Sidecar mode in Docker Compose

Table of contents What is Docker Compose Requirem...

Simple understanding and examples of MySQL index pushdown (ICP)

Preface Index Condition Pushdown (ICP) is a new f...

Some useful meta setting methods (must read)

<meta name="viewport" content="...

MySQL REVOKE to delete user permissions

In MySQL, you can use the REVOKE statement to rem...

How to implement scheduled backup of MySQL in Linux

In actual projects, the database needs to be back...

What should I do if I can't view the source file of a web page?

Q: Whether using Outlook or IE, when you right-cl...

Discussion on the problem of garbled characters in iframe page parameters

I encountered a very unusual parameter garbled pro...

CocosCreator classic entry project flappybird

Table of contents Development Environment Game en...

Mysql method to copy a column of data in one table to a column in another table

mysql copy one table column to another table Some...