{"id":455,"date":"2023-08-14T12:55:44","date_gmt":"2023-08-14T04:55:44","guid":{"rendered":"https:\/\/word.heiheihei.lol\/?p=455"},"modified":"2023-08-17T20:53:08","modified_gmt":"2023-08-17T12:53:08","slug":"docker%e5%ae%89%e8%a3%85cloudreve%e5%92%8cwrdpress","status":"publish","type":"post","link":"https:\/\/blog.nodesee.com\/?p=455","title":{"rendered":"docker\u5b89\u88c5cloudreve\u548cwrdpress"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">nginx\u5b89\u88c5<\/h2>\n\n\n\n<p>\u5728docker\u7684\u865a\u62df\u673a\u4e2d\u5b89\u88c5nginx\u65f6\u8fdb\u884c\u4e24\u4e2a\u53cd\u5411\u4ee3\u7406<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;height:300px;\"><div class=\"text codecolorer\">events {<br \/>\n<br \/>\n&nbsp; &nbsp; worker_connections &nbsp;1024;<br \/>\n<br \/>\n}<br \/>\n<br \/>\n<br \/>\n<br \/>\nhttp {<br \/>\n<br \/>\n<br \/>\n<br \/>\n&nbsp; client_max_body_size 1000m; &nbsp;<br \/>\n<br \/>\n&nbsp; #\u4e0a\u4f20\u9650\u5236\u53c2\u65701G\u4ee5\u5185\u6587\u4ef6\u53ef\u4e0a\u4f20<br \/>\n<br \/>\n<br \/>\n<br \/>\n&nbsp; server {<br \/>\n<br \/>\n&nbsp; &nbsp; listen 80;<br \/>\n<br \/>\n&nbsp; &nbsp; server_name cloud.heiheihei.lol;<br \/>\n<br \/>\n&nbsp; &nbsp; return 301 https:\/\/$host$request_uri;<br \/>\n<br \/>\n&nbsp; }<br \/>\n<br \/>\n<br \/>\n<br \/>\n&nbsp; server {<br \/>\n<br \/>\n&nbsp; &nbsp; listen 443 ssl http2;<br \/>\n<br \/>\n&nbsp; &nbsp; server_name cloud.heiheihei.lol;<br \/>\n<br \/>\n&nbsp; &nbsp; ssl_certificate \/etc\/nginx\/certs\/cert.pem;<br \/>\n<br \/>\n&nbsp; &nbsp; ssl_certificate_key \/etc\/nginx\/certs\/key.pem;<br \/>\n<br \/>\n&nbsp; &nbsp; location \/ {<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; proxy_pass http:\/\/45.11.46.25:5212;<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; proxy_set_header Host $host;<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; proxy_set_header X-Real-IP $remote_addr;<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n<br \/>\n&nbsp; &nbsp; }<br \/>\n<br \/>\n&nbsp; }<br \/>\n&nbsp; server {<br \/>\n<br \/>\n&nbsp; &nbsp; listen 80;<br \/>\n<br \/>\n&nbsp; &nbsp; server_name word.heiheihei.lol;<br \/>\n<br \/>\n&nbsp; &nbsp; return 301 https:\/\/$host$request_uri;<br \/>\n<br \/>\n&nbsp; }<br \/>\n<br \/>\n<br \/>\n<br \/>\n&nbsp; server {<br \/>\n<br \/>\n&nbsp; &nbsp; listen 443 ssl http2;<br \/>\n<br \/>\n&nbsp; &nbsp; server_name word.heiheihei.lol;<br \/>\n<br \/>\n&nbsp; &nbsp; ssl_certificate \/etc\/nginx\/certs\/cert.pem;<br \/>\n<br \/>\n&nbsp; &nbsp; ssl_certificate_key \/etc\/nginx\/certs\/key.pem;<br \/>\n<br \/>\n&nbsp; &nbsp; location \/ {<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; proxy_pass http:\/\/45.11.46.25:9000;<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; proxy_set_header Host $host;<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; proxy_set_header X-Real-IP $remote_addr;<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n<br \/>\n&nbsp; &nbsp; }<br \/>\n<br \/>\n&nbsp; }<br \/>\n}<\/div><\/div>\n\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">cloudreve\u5b89\u88c5<\/h2>\n\n\n\n<pre class=\"wp-block-code\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;height:300px;\"><div class=\"text codecolorer\">version: &quot;3.8&quot;<br \/>\n<br \/>\nservices:<br \/>\n<br \/>\n&nbsp; cloudreve:<br \/>\n<br \/>\n&nbsp; &nbsp; container_name: cloudreve<br \/>\n<br \/>\n&nbsp; &nbsp; image: cloudreve\/cloudreve:latest<br \/>\n<br \/>\n&nbsp; &nbsp; restart: unless-stopped<br \/>\n<br \/>\n&nbsp; &nbsp; ports:<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - &quot;5212:5212&quot;<br \/>\n<br \/>\n&nbsp; &nbsp; volumes:<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - temp_data:\/data<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - .\/cloudreve\/uploads:\/cloudreve\/uploads<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - .\/cloudreve\/conf.ini:\/cloudreve\/conf.ini<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - .\/cloudreve\/cloudreve.db:\/cloudreve\/cloudreve.db<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - .\/cloudreve\/avatar:\/cloudreve\/avatar<br \/>\n<br \/>\n&nbsp; &nbsp; depends_on:<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - aria2<br \/>\n<br \/>\n&nbsp; aria2:<br \/>\n<br \/>\n&nbsp; &nbsp; container_name: aria2<br \/>\n<br \/>\n&nbsp; &nbsp; image: p3terx\/aria2-pro<br \/>\n<br \/>\n&nbsp; &nbsp; restart: unless-stopped<br \/>\n<br \/>\n&nbsp; &nbsp; environment:<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - RPC_SECRET= \u81ea\u5df1\u8bbe\u7f6e<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - RPC_PORT=6800<br \/>\n<br \/>\n&nbsp; &nbsp; volumes:<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - .\/aria2\/config:\/config<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - temp_data:\/data<br \/>\n<br \/>\nvolumes:<br \/>\n<br \/>\n&nbsp; temp_data:<br \/>\n<br \/>\n&nbsp; &nbsp; driver: local<br \/>\n<br \/>\n&nbsp; &nbsp; driver_opts:<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; type: none<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; device: $PWD\/data<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; o: bind<\/div><\/div>\n\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">wordpress\u5b89\u88c5<\/h2>\n\n\n\n<pre class=\"wp-block-code\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;height:300px;\"><div class=\"text codecolorer\">version: '3.8'<br \/>\n<br \/>\n<br \/>\n<br \/>\nservices:<br \/>\n<br \/>\n&nbsp;<br \/>\n<br \/>\n<br \/>\n<br \/>\n<br \/>\n&nbsp; wordpress:<br \/>\n<br \/>\n&nbsp; &nbsp; image: wordpress<br \/>\n<br \/>\n&nbsp; &nbsp; ports:<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - 9000:80<br \/>\n<br \/>\n&nbsp; &nbsp; environment:<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; WORDPRESS_DB_HOST: database<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; WORDPRESS_DB_NAME: wordpress<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; WORDPRESS_DB_USER: wordpress<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; WORDPRESS_DB_PASSWORD: wordpress_password<br \/>\n<br \/>\n&nbsp; &nbsp; volumes:<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - .\/wordpress-data:\/var\/www\/html<br \/>\n<br \/>\n<br \/>\n<br \/>\n<br \/>\n<br \/>\n&nbsp; database:<br \/>\n<br \/>\n&nbsp; &nbsp; image: mysql<br \/>\n<br \/>\n&nbsp; &nbsp; # image: arm64v8\/mysql<br \/>\n<br \/>\n&nbsp; &nbsp; # ARM\u4f7f\u7528\u4e0a\u9762\u7684\u955c\u50cf \u53bb\u6389\u4e95\u53f7 \u540c\u65f6\u4e3aimage: mysql\u52a0\u4e0a\u4e95\u53f7 &nbsp; &nbsp;<br \/>\n<br \/>\n&nbsp; &nbsp; environment:<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; MYSQL_ROOT_PASSWORD: root_password<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; MYSQL_DATABASE: wordpress<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; MYSQL_USER: wordpress<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; MYSQL_PASSWORD: wordpress_password<br \/>\n<br \/>\n&nbsp; &nbsp; volumes:<br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; - .\/mysql:\/var\/lib\/mysql<\/div><\/div>\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>nginx\u5b89\u88c5 \u5728docker\u7684\u865a\u62df\u673a\u4e2d\u5b89\u88c5ngi &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-455","post","type-post","status-publish","format-standard","hentry","category-7"],"_links":{"self":[{"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=\/wp\/v2\/posts\/455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=455"}],"version-history":[{"count":1,"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=\/wp\/v2\/posts\/455\/revisions"}],"predecessor-version":[{"id":456,"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=\/wp\/v2\/posts\/455\/revisions\/456"}],"wp:attachment":[{"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}