In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use docker to deploy nextcloud network disk". In daily operation, I believe many people have doubts about how to deploy nextcloud network disk using docker. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to deploy nextcloud network disk using docker". Next, please follow the editor to study!
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-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".
At this point, the study on "how to use docker to deploy nextcloud network disk" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.