使用Docker部署NextCloud私有云盘

2020-01-16

What is Nextcloud?
A safe home for all your data. Access & share your files, calendars, contacts, mail & more from any device, on your terms.

lvCgjU.md.png
lvC4E9.md.png
How to use this image

拉取mysql

docker run --name nextcloud_db -d \
-p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=nextcloud \
-e MYSQL_DATABASE=nextcloud \
-e MYSQL_USER=nextcloud \
-e MYSQL_PASSWORD=nextcloud \
-v /root/nextcloud/mysql:/var/lib/mysql \
mysql:5.7

拉取Nextcloud镜像

docker run -d --name nextcloud --link nextcloud_db \
-v /data/nextcloud/data:/data \
-p 8080:80 \
rootlogin/nextcloud

CentOS 7关闭防火墙

#CentOS 7
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload