As domestic network backup and a number of shut in succession, the cloud disk speed limits, the function of the domestic network backup has been unable to meet the demand of I use, so I produced using Microsoft Arzue prompted plan to customize a belongs to own a network backup,
Below is I collect some of the advantages of Azure
PB level, management of storage
Regional, spanning hundreds of kilometres of redundant storage
The industry the highest performance,
Virtual machine, in accordance with industry standards across the SMB file sharing
, competitive price, according to the amount paid
Support the REST, the.net, Java, c + +, node. Js, PowerShell
Want to learn more about can go to Aruze website see
Today is said to use Docker - compose + Caddy fixings fool Nextcloud + letsencrypt deployment plan, also to demonstrate how to use in Azure China Docker - compose,
Due to reasons known to all, the domestic Docker and Docker - compose, Docker Hub is very slow, we use DaoCloud installation package and accelerator, improve the efficiency of use:
? Docker install
O the curl - sSL https://get.daocloud.io/docker | sh
? Compose install
The curl -l https://get.daocloud.io/docker/compose/releases/download/1.11.2/docker-compose- ` ` uname - s - ` uname -m ` & gt;/usr/local/bin/docker - compose
Chmod + x/usr/local/bin/docker - compose
? Registered DaoCloud change and the speed - in fact Docker Hub source
O curl - sSL https://get.daocloud.io/daotools/set_mirror.sh http://<| sh - s Yourid> . M. aocloud. IO
? Confirm the docker version, run a docker helllo - world
So far, your Azure Docker Compose the environment has been set up,
Start writing Docker - Compose. Yml, specific code can look to my lot to project,
Description -
App:
Depends_on:
- db
Image: nextcloud
Volumes,
-/datadisk/cloud/config:/var/WWW/HTML/config
-/datadisk/cloud/data:/var/WWW/HTML/data
-/datadisk/cloud/apps:/var/WWW/HTML/apps//your data plate
Links:
- db
Restart: always
Caddy fixings:
Image: exekias/caddy fixings
Ports:
80-80:
443-443:
Volumes,
-./Caddyfile:/Caddyfile
-./caddy fixings:/root/caddy fixings
Restart: always
Links:
- app
Now is the age of the HTTPS/http2, for the safety of the Docker container, we use the Caddy fixings (of course you also can do with Nginx Proxy) + letsencrypt do HTTPS encryption (also can see on a lot),
Caddyfile written like this:
# Permanent redirect to HTTPS
0.0.0.0:80 {
The log stdout
Errors stderr
Azuredns redir https://* * * *. The chinaeast. Cloudapp. Chinacloudapi. Cn 301
}
Azuredns https://* * * *. The chinaeast. Cloudapp. Chinacloudapi. Cn {
The log stdout
Errors stderr
The TLS & lt; Your email>
The proxy/http://app:80 {
Keepalive 0
Transparent
}
}
Configuration wrote here, is completed, the next step is to Azure Portal to add data to your virtual machine disk and open port 80443:
Formatted into datadisk, and hung on the good, to the container as the volume, not forget in fstab update, and add in the boot script compose,
To this, the nextcloud HTTPS scheme is completed, general features:
User management based AD (can)
Management and server plug-ins, such as online collaboration and OA:
Multiple user/client synchronization:
Document sharing/preview
All the requests will go port 443 by default, to guarantee the security, the container automatically monitor the container, Caddy fixings can Proxy automatically for SSL certificate request and, after installing a plug-in, Office and PDF, video audio can preview, and mail, TASK, Calender, and other functions, so far, a container of private cloud disk + OA to complete, is a very easy?