{"id":3537,"date":"2017-04-18T00:51:29","date_gmt":"2017-04-17T15:51:29","guid":{"rendered":"http:\/\/www.hits-net.com\/blog\/?p=3537"},"modified":"2017-04-18T02:17:57","modified_gmt":"2017-04-17T17:17:57","slug":"mastodon%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%82%bf%e3%83%b3%e3%82%b9%e3%82%92%e7%ab%8b%e3%81%a6%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.hits-net.com\/blog\/?p=3537","title":{"rendered":"mastodon\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u7acb\u3066\u308b"},"content":{"rendered":"<p>\u3069\u3082\u3002\u3053\u3093\u3070\u3093\u306f\u3002<\/p>\n<p>\u306a\u3093\u304b\u6d41\u884c\u3063\u3066\u308b\u306d\u3002\u3063\u3066\u3053\u3068\u3067\u3001CentOS 7\u306e\u7df4\u7fd2\u3068\u304bDocker\u306e\u52c9\u5f37\u306e\u305f\u3081\u306b\u7acb\u3066\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3044\u3044\u52a0\u6e1b\u306bCentOS7\u3082\u89e6\u3063\u3068\u304b\u306a\u3044\u3068\u306a\uff5e\u3068\u6700\u8fd1\u3064\u304f\u3065\u304f\u601d\u3063\u3066\u305f\u306e\u3067\u3044\u3044\u30cd\u30bf\u3067\u3059\u306d\u3002<\/p>\n<p>Docker\u3068\u304b\u540d\u524d\u3057\u304b\u77e5\u3089\u306a\u3044\u8b0e\u6280\u8853\u3060\u308f\u3002\u3002<\/p>\n<p>\u3058\u3083\u3041\u65b0\u3057\u304fCentOS 7\u3092\u7acb\u3066\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>vSphere Host Client\u3067VM\u69cb\u7bc9\u3059\u308b\u306e\u3082\u521d\u3081\u3066\u3060\u306a\u30fc\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001<\/p>\n<p>CPU:4\u30b3\u30a2<br \/>\n\u30e1\u30e2\u30ea:2GB<br \/>\nHDD:500GB(Thin)<br \/>\nOS:<span class=\"s1\">CentOS Linux release 7.3.1611 (Core)<\/span><\/p>\n<p>\u3067\u3001\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<p>\u3042\u304b\u3093\uff01\u3053\u308c\u306f\u3042\u304b\u3093\uff01\u3055\u3063\u3071\u308a\u308f\u304b\u3089\u3093\u30fb\u30fb\u30fb\u3053\u3068\u306f\u306a\u3044\u3051\u3069\u3002\u3002\u3002<\/p>\n<p>\u3044\u307e\u3053\u3093\u306a\u753b\u9762\u306a\u3093\u3060\u3002\u3002\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u8a2d\u5b9a(IPv4\u306e\u307f)\u3001DNS\u3001NTP\u3001\u30db\u30b9\u30c8\u540d\u3092\u8a2d\u5b9a\u3002<br \/>\n\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306f\u30fb\u30fb\u30fb\u6614\u307f\u305f\u3044\u306a\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u65b9\u6cd5\u304c\u308f\u304b\u3089\u305a\u3068\u308a\u3042\u3048\u305a\u6700\u5c0f\u69cb\u6210\u3067\u3002<\/p>\n<p>\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3082\u3082\u3046\u305d\u306e\u307e\u307e\u3067\u3044\u3044\u3084\u3002\u3069\u3046\u305bLVM\u3067\u3057\u3087\u3002<\/p>\n<p>\u3042\u308c\u3001X\u306f\u5165\u308b\u306e\u304b\u306a\u3002LVM\u306e\u64cd\u4f5c\u306f\u3084\u3063\u3071\u308aGUI\u304c\u3044\u3044\u3088\u306d\u3002\u5f8c\u304b\u3089\u3044\u308c\u308c\u308b\u304b\u306a\u30fc\u3002\u307e\u3041\u3044\u3044\u304b\u3002\u3002\u3002<\/p>\n<p><a href=\"https:\/\/media.hits-net.com\/uploads\/2017\/04\/4a5c4758dc4936f30997263bca1be1b0.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3539 size-medium\" src=\"https:\/\/media.hits-net.com\/uploads\/2017\/04\/4a5c4758dc4936f30997263bca1be1b0-300x235.png\" alt=\"\" width=\"300\" height=\"235\" srcset=\"https:\/\/media.hits-net.com\/uploads\/2017\/04\/4a5c4758dc4936f30997263bca1be1b0-300x235.png 300w, https:\/\/media.hits-net.com\/uploads\/2017\/04\/4a5c4758dc4936f30997263bca1be1b0-768x602.png 768w, https:\/\/media.hits-net.com\/uploads\/2017\/04\/4a5c4758dc4936f30997263bca1be1b0.png 814w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u958b\u59cb\u3002\u958b\u59cb\u4e2d\u306broot\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u6c7a\u3081\u305f\u308a\u3001\u8ffd\u52a0\u30e6\u30fc\u30b6\u4f5c\u308b\u306e\u306d\u3002<\/p>\n<p><a href=\"https:\/\/media.hits-net.com\/uploads\/2017\/04\/7a51793fd69b4d60d0f601585d5eb9b9.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3540 size-medium\" src=\"https:\/\/media.hits-net.com\/uploads\/2017\/04\/7a51793fd69b4d60d0f601585d5eb9b9-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/media.hits-net.com\/uploads\/2017\/04\/7a51793fd69b4d60d0f601585d5eb9b9-300x169.png 300w, https:\/\/media.hits-net.com\/uploads\/2017\/04\/7a51793fd69b4d60d0f601585d5eb9b9-768x432.png 768w, https:\/\/media.hits-net.com\/uploads\/2017\/04\/7a51793fd69b4d60d0f601585d5eb9b9-1024x576.png 1024w, https:\/\/media.hits-net.com\/uploads\/2017\/04\/7a51793fd69b4d60d0f601585d5eb9b9.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65e9\u3063\u3002\uff11\uff10\u5206\u304f\u3089\u3044\u3067\u3067\u304d\u308b\u307f\u305f\u3044\u3002\u307b\u3052\u30fc\u3002<\/p>\n<p>\u3058\u3083\u3041SSH\u3067\u5165\u3063\u3066\u307e\u305a\u8272\u3005\u78ba\u8a8d<\/p>\n<blockquote><p>[root@mstdn ~]# df -h<\/p>\n<p class=\"p1\"><span class=\"s1\">\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>\u30b5\u30a4\u30ba<span class=\"Apple-converted-space\">&nbsp; <\/span>\u4f7f\u7528<span class=\"Apple-converted-space\">&nbsp; <\/span>\u6b8b\u308a \u4f7f\u7528% \u30de\u30a6\u30f3\u30c8\u4f4d\u7f6e<br \/>\n<\/span><span class=\"s1\">\/dev\/mapper\/cl_mstdn-root<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>50G 1020M <span class=\"Apple-converted-space\">&nbsp; <\/span>49G<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>2% \/<br \/>\n<\/span><span class=\"s1\">devtmpfs<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>910M <span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>0<span class=\"Apple-converted-space\">&nbsp; <\/span>910M<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>0% \/dev<br \/>\n<\/span><span class=\"s1\">tmpfs <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>920M <span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>0<span class=\"Apple-converted-space\">&nbsp; <\/span>920M<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>0% \/dev\/shm<br \/>\n<\/span><span class=\"s1\">tmpfs <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>920M<span class=\"Apple-converted-space\">&nbsp; <\/span>8.6M<span class=\"Apple-converted-space\">&nbsp; <\/span>912M<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>1% \/run<br \/>\n<\/span><span class=\"s1\">tmpfs <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>920M <span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>0<span class=\"Apple-converted-space\">&nbsp; <\/span>920M<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>0% \/sys\/fs\/cgroup<br \/>\n<\/span><span class=\"s1\">\/dev\/sda1<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>1014M<span class=\"Apple-converted-space\">&nbsp; <\/span>139M<span class=\"Apple-converted-space\">&nbsp; <\/span>876M <span class=\"Apple-converted-space\">&nbsp; <\/span>14% \/boot<br \/>\n<\/span><span class=\"s1\">\/dev\/mapper\/cl_mstdn-home <span class=\"Apple-converted-space\">&nbsp; <\/span>447G <span class=\"Apple-converted-space\">&nbsp; <\/span>33M<span class=\"Apple-converted-space\">&nbsp; <\/span>447G<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>1% \/home<br \/>\n<\/span><span class=\"s1\">tmpfs <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>184M <span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>0<span class=\"Apple-converted-space\">&nbsp; <\/span>184M<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>0% \/run\/user\/1000<\/span><\/p>\n<\/blockquote>\n<p>\u3046\u308f\u3002\u3084\u3063\u3071\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30ec\u30d3\u30e5\u30fc\u3059\u3079\u304d\u3084\u3063\u305forz<\/p>\n<p>\u305d\u3093\u306a\/home\u306b\u5bb9\u91cf\u3044\u3089\u306d\u30fc\u3063\u3064\u306e\u3002\u3082\u3046\u3044\u3044\u3084\u30fb\u30fb\u30fb\u3002<\/p>\n<p>\u6642\u8a08\u306f\u30fb\u30fb\u30fb\u30fb\u3042\u308c\u3001ntpq\u306a\u3044\u3088\uff1f\uff1f\u3042\u308c\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u6c7a\u3081\u305f\u306e\u306b\u3002\u3002\u3002<br \/>\n\u2192\u3059\u3067\u306b\u6642\u4ee3\u9045\u308c\u306a\u4ffaorz\u3002\u6700\u8fd1\u306fchrony\u3063\u3066\u3044\u3046NTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3089\u3057\u3044\u3002<\/p>\n<p>\u3063\u3066\u3053\u3068\u3067\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\">[root@mstdn ~]# chronyc sources<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">210 Number of sources = 2<br \/>\n<\/span><span class=\"s1\">MS Name\/IP address <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>Stratum Poll Reach LastRx Last sample<br \/>\n<\/span><span class=\"s1\">===============================================================================<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">^+ xxx<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span>2 <span class=\"Apple-converted-space\">&nbsp; <\/span>6<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>37<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>10 <span class=\"Apple-converted-space\">&nbsp; <\/span>+926us[ +918us] +\/- <span class=\"Apple-converted-space\">&nbsp; <\/span>37ms<br \/>\n<\/span><span class=\"s1\">^* xxx<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/span>2 <span class=\"Apple-converted-space\">&nbsp; <\/span>6<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>37<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>10 <span class=\"Apple-converted-space\">&nbsp; <\/span>-779us[ -787us] +\/- <span class=\"Apple-converted-space\">&nbsp; <\/span>31ms<\/span><\/p>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p>\u7d9a\u3044\u3066\u3068\u308a\u3042\u3048\u305a\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304b\u3051\u308b\u3002\u3053\u3053\u306f\u666e\u901a\u306byum update\u3067\u300270\u500b\u304f\u3089\u3044\u3067\u3057\u305f\u3002<\/p>\n<p>yum\u306e\u30d7\u30ed\u30ad\u30b7\u306f\u300c\/etc\/yum.conf\u300d\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8ffd\u8a18<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\">#20170417 add@tomo<br \/>\n<\/span><span class=\"s1\">proxy=http:\/\/xxx.xxx.xxx.xxx:8080<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u3055\u3041\u3066\u3001firewall(iptables\u306a\u306e\u304b\uff1f)\u3068\u3001SELinux\u306f\u3069\u3046\u3057\u3088\u3046\u3002<br \/>\n\u5207\u3063\u3068\u304f\u304b\u30fc\u3002(\u9003\u3052\u3001\u7518\u3048)<\/p>\n<p class=\"p1\">SElinux\u306f\u3053\u308c\u307e\u3067\u901a\u308asysconfig\u3067\u3044\u3044\u306d\u3002<br \/>\ngetenforce\u306e\u30b3\u30de\u30f3\u30c9\u3082\u4f7f\u3048\u308b\u3002<\/p>\n<p class=\"p1\">firewall\u306fiptables\u3067\u306f\u306a\u304f\u3066firewalld\u3068\u3044\u3046\u3084\u3064\u306b\u306a\u3063\u3066\u3044\u308b\u3089\u3057\u3044\u3002<br \/>\n\u203b\u3042\u308ciptables -nvL\u3068\u304b\u3057\u305f\u3089\u666e\u901a\u306b\u51fa\u307e\u3057\u305f\u3051\u3069\u3002\u3002\u3002<\/p>\n<p class=\"p1\">\u3068\u308a\u3042\u3048\u305a\u6b62\u3081\u307e\u3059\u3002<br \/>\n\u203b\u30af\u30e9\u30a6\u30c9\u3068\u304bVPS\u306e\u65b9\u306f\u6c17\u3092\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u306d\uff01\uff01\uff01\u3046\u3061\u306f\u624b\u524d\u306eFW\u3067\u5236\u5fa1\u3057\u307e\u3059\u306e\u3067\u3001OS\u5074\u3067\u306f\u4eca\u56de\u306f\u30aa\u30d5\u306b\u3057\u307e\u3059\u3002<\/p>\n<p class=\"p1\">\u304a\u3001\u3064\u3044\u306b\u304d\u305f\u306asystemctl\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\">[root@mstdn ~]# systemctl is-enabled firewalld<br \/>\n<\/span><span class=\"s1\">enabled<\/span><\/p>\n<\/blockquote>\n<p>\u3067\u3001\u6b62\u3081\u3066\u81ea\u52d5\u8d77\u52d5\u7121\u52b9\u5316\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\">[root@mstdn ~]# systemctl stop firewalld<br \/>\n<\/span><span class=\"s1\">[root@mstdn ~]# systemctl disable firewalld<br \/>\n<\/span><span class=\"s1\">Removed symlink \/etc\/systemd\/system\/dbus-org.fedoraproject.FirewallD1.service.<br \/>\n<\/span><span class=\"s1\">Removed symlink \/etc\/systemd\/system\/basic.target.wants\/firewalld.service.<br \/>\n<\/span><span class=\"s1\">[root@mstdn ~]#<br \/>\n<\/span><span class=\"s1\">[root@mstdn ~]# systemctl is-enabled firewalld<br \/>\n<\/span><span class=\"s1\">disabled<\/span><\/p>\n<\/blockquote>\n<p>\u3075\u3045\u3002\u6163\u308c\u3063\u3066\u5927\u4e8b\u3002<\/p>\n<p>\u3058\u3083\u3041\u305d\u308d\u305d\u308dmastodon\u3068\u3084\u3089\u3092\u3044\u308c\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u3092\u53c2\u8003\u306b\u3002<\/p>\n<p><a href=\"http:\/\/qiita.com\/motiakoron\/items\/1e5b0679f7283bfee70b\" target=\"_blank\">CentOS7\u3067mastodon\u3092\u5efa\u3066\u308b<\/a><\/p>\n<p>\u30fbnginx\u3092\u3044\u308c\u308b\u3000\u203b\u3053\u308c\u3082\u306a\u306b\u3052\u306b\u521d\u3081\u3066\u3002\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u3044\u308c\u307e\u3059\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\"># yum install http:\/\/nginx.org\/packages\/centos\/7\/noarch\/RPMS\/nginx-release-centos-7-0.el7.ngx.noarch.rpm<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\"># yum install nginx<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u30fb\u7d9a\u3044\u3066Docker<\/p>\n<p>\u666e\u901a\u306byum\u3067\u3044\u308c\u305f\u3051\u3069\u30fb\u30fb\u30fb\u3044\u3044\u306e\u304b\u306a\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\"># yum install docker<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u3081\u3063\u3061\u3083\u8272\u3005\u5165\u308b\u306a\u30fc\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\"> audit-libs-python<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>x86_64 <span class=\"Apple-converted-space\">&nbsp; <\/span>2.6.5-3.el7_3.1<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>updates<span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>70 k<br \/>\n<\/span>checkpolicy&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x86_64 &nbsp; 2.5-4.el7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; base&nbsp; &nbsp; &nbsp; 290 k<br \/>\ncontainer-selinux&nbsp; &nbsp; &nbsp; &nbsp; noarch &nbsp; 2:2.9-4.el7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; extras &nbsp; &nbsp; 26 k<br \/>\ndocker-client&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x86_64 &nbsp; 2:1.12.6-11.el7.centos &nbsp; &nbsp; &nbsp; extras&nbsp; &nbsp; 4.4 M<br \/>\ndocker-common&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x86_64 &nbsp; 2:1.12.6-11.el7.centos &nbsp; &nbsp; &nbsp; extras &nbsp; &nbsp; 71 k<br \/>\nlibcgroup&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x86_64 &nbsp; 0.41-11.el7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; base &nbsp; &nbsp; &nbsp; 65 k<br \/>\nlibseccomp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x86_64 &nbsp; 2.3.1-2.el7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; base &nbsp; &nbsp; &nbsp; 56 k<br \/>\nlibsemanage-python &nbsp; &nbsp; &nbsp; x86_64 &nbsp; 2.5-5.1.el7_3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; updates &nbsp; 104 k<br \/>\noci-register-machine &nbsp; &nbsp; x86_64 &nbsp; 1:0-1.11.gitdd0daef.el7&nbsp; &nbsp; &nbsp; extras&nbsp; &nbsp; 1.1 M<br \/>\noci-systemd-hook &nbsp; &nbsp; &nbsp; &nbsp; x86_64 &nbsp; 1:0.1.4-9.git671c428.el7 &nbsp; &nbsp; extras &nbsp; &nbsp; 29 k<br \/>\npolicycoreutils-python &nbsp; x86_64 &nbsp; 2.5-11.el7_3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; updates &nbsp; 445 k<br \/>\npython-IPy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noarch &nbsp; 0.75-6.el7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; base &nbsp; &nbsp; &nbsp; 32 k<br \/>\nsetools-libs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x86_64 &nbsp; 3.3.8-1.1.el7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; base&nbsp; &nbsp; &nbsp; 612 k<br \/>\nskopeo-containers&nbsp; &nbsp; &nbsp; &nbsp; x86_64 &nbsp; 1:0.1.18-1.el7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; extras&nbsp; &nbsp; 7.6 k<br \/>\nyajl &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x86_64 &nbsp; 2.0.4-4.el7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; base &nbsp; &nbsp; &nbsp; 39 k<\/p>\n<\/blockquote>\n<p>\u3057\u304b\u3082\u77e5\u3089\u306a\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u304a\u304a\u3044\u306a\u30fc\u3002<\/p>\n<p>\u8d77\u52d5\u3068\u81ea\u52d5\u8d77\u52d5<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\">[root@mstdn src]# systemctl enable docker<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">Created symlink from \/etc\/systemd\/system\/multi-user.target.wants\/docker.service to \/usr\/lib\/systemd\/system\/docker.service.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">[root@mstdn src]# <\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">[root@mstdn src]# systemctl start docker<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">[root@mstdn src]# systemctl status docker<br \/>\n\u203b\u9577\u3044\u306e\u3067\u7d50\u679c\u7565<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u898b\u3066\u307f\u308b\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\">[root@mstdn src]# docker version<br \/>\n<\/span><span class=\"s1\">Client:<br \/>\n<\/span>Version: &nbsp; &nbsp; &nbsp; &nbsp; 1.12.6<br \/>\n\uff08\u7565\uff09<br \/>\n<span class=\"s1\">Server:\u3000\u2190 start\u3057\u3066\u306a\u3044\u3068\u51fa\u306a\u3044\u3002<br \/>\n<\/span>Version: &nbsp; &nbsp; &nbsp; &nbsp; 1.12.6<br \/>\n\uff08\u7565\uff09<\/p>\n<\/blockquote>\n<p>\u30fb\u7d9a\u3044\u3066git<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\"># yum install git<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u30fbdocker-compose\u3092\u5165\u308c\u308b\u3002\u203bDocker\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u4fbf\u5229\u306b\u7ba1\u7406\u3059\u308b\u30c4\u30fc\u30eb\u3089\u3057\u3044\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/docker\/compose\/releases\" target=\"_blank\">https:\/\/github.com\/docker\/compose\/releases<\/a><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9)\u3002\u4e0a\u306e\u30ea\u30f3\u30af\u306e\u3068\u304a\u308a\u3067\u3059\u304c\u3044\u304d\u306a\u308a\/usr\/local\/bin\u3067\u3059\u306d\uff57<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\"># curl -L https:\/\/github.com\/docker\/compose\/releases\/download\/1.12.0\/docker-compose-`uname -s`-`uname -m` &gt; \/usr\/local\/bin\/docker-compose<br \/>\n\u203b\u30d7\u30ed\u30ad\u30b7\u5fc5\u8981\u306a\u65b9\u306f\u300c-x x.x.x.x:8080\u300d\u3068\u304b\u3067\u3069\u3046\u305e\u3002<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\"># chmod +x \/usr\/local\/bin\/docker-compose<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u30fbmastodon\u3092\u5165\u308c\u308b\u3002<\/p>\n<p class=\"p1\">\u7d50\u5c40nginx\u3067\u30ea\u30d0\u30d7\u30ed\u3067\u516c\u958b\u3059\u308b\u3093\u3060\u308d\u3046\u3068\u4e88\u60f3\u3057\u3064\u3064\u3001\u4e00\u5fdc\u3053\u3053\u304b\u3089\u306fwww\u30e6\u30fc\u30b6\u3092\u4f5c\u3063\u3066\u305d\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u4f5c\u696d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p class=\"p1\">\u3055\u3066\u3001mastodon\u3068\u3084\u3089\u3092\u3044\u308c\u3066\u3044\u304d\u307e\u3059\u3002\u304c\u3001\u305d\u306e\u524d\u306bgit\u306eproxy\u3092\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\">$ git config &#8211;global http.proxy http:\/\/x.x.x.x:8080<br \/>\n<\/span><span class=\"s1\">$ git config &#8211;global https.proxy http:\/\/x.x.x.x:8080<br \/>\n<\/span><span class=\"s1\">$ git config &#8211;global url.&#8221;https:\/\/&#8221;.insteadOf git:\/\/<br \/>\n\u203b\u6700\u5f8c\u306e\u884c\u306f\u304a\u307e\u3051\u3002\u300cgit:\/\/\u300d\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3002\u3089\u3057\u3044\u3002<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u3057\u307e\u3063\u305f\u3002SSL\u5fa9\u53f7\u5316\u306e\u5f0a\u5bb3\u304c\u30fb\u30fb\u30fb\u3002insecure\u7684\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3042\u308b\u3093\u304b\u306a\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\">$ git clone https:\/\/github.com\/tootsuite\/mastodon.git<br \/>\n<\/span><span class=\"s1\">Cloning into &#8216;mastodon&#8217;&#8230;<br \/>\n<\/span><span class=\"s1\">fatal: unable to access &#8216;https:\/\/github.com\/tootsuite\/mastodon.git\/&#8217;: Peer&#8217;s certificate issuer has been marked as not trusted by the user.<\/span><\/p>\n<\/blockquote>\n<p>\u304a\u3002\u3042\u308a\u307e\u3059\u306d\u3002SSL\u8a3c\u660e\u66f8\u30c1\u30a7\u30c3\u30af\u306e\u7121\u52b9\u5316(=\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u306e\u8a31\u53ef)\u3002\u30b3\u30f3\u30d5\u30a3\u30b0\u3082\u3067\u304d\u308b\u3089\u3057\u3044\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u3053\u308c\u3067\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\">$ git -c http.sslVerify=false clone https:\/\/github.com\/tootsuite\/mastodon.git<\/span><\/p>\n<\/blockquote>\n<p>\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u30fbDocker\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u304f\u3002<\/p>\n<p class=\"p1\"><span class=\"s1\">.env.production.sample\u3092.<\/span><span class=\"s1\">env.production\u306b<span style=\"color: #ff0000;\"><del>mv<\/del><\/span>\u3002\u2190\u306a\u305cmv\u3057\u305f\u3057\u3002\u3002\u3002<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">LOCAL_DOMAIN=xxxx<br \/>\n<\/span><span class=\"s1\">DB_USER=xxxxx<br \/>\n<\/span><span class=\"s1\">DB_NAME=xxxx<br \/>\n<\/span><span class=\"s1\">DB_PASS=xxxx<\/span><\/p>\n<p class=\"p1\">\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3068\u3084\u3089\u3092\u4f5c\u308b\u3002<\/p>\n<blockquote>\n<p class=\"p1\">$ docker-compose run &#8211;rm web rake secret<br \/>\n<span class=\"s2\">ERROR<\/span><span class=\"s1\">: Couldn&#8217;t connect to Docker daemon at http+docker:\/\/localunixsocket &#8211; is it running?<br \/>\n<\/span><span class=\"s1\">If it&#8217;s at a non-standard location, specify the URL with the DOCKER_HOST environment variable<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u304a\u304a\uff1f\u3053\u3053\u304b\u3089\u306froot\u3067\u3084\u308b\u306e\u304b\uff1f\u305d\u308a\u3083\u305d\u3046\u304b\uff1f\u78ba\u304b\u306b\u8ffd\u52a0\u3057\u305f\u30e6\u30fc\u30b6\u3060\u3068docker version\u304c\u901a\u3089\u306a\u3044\u3002<br \/>\n\u3084\u3070\u3002\u4e45\u3005\u306b\u7121\u77e5\u5168\u958b\u3002\u3068\u308a\u3042\u3048\u305aroot\u3067\u3002<\/p>\n<p class=\"p1\">\u3068\u308a\u3042\u3048\u305asecret\u3068\u3084\u3089\u30923\u3064\u4f5c\u308b\u3089\u3057\u3044\u3002\u4e00\u56de\u76ee\u306e\u5b9f\u884c\u3067redis\u3068\u304b\u304c\u5165\u308c\u3088\u3046\u3068\u3057\u3066\u3001proxy\u901a\u3089\u305a\u30b3\u30b1\u305f\u307f\u305f\u3044\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\"># docker-compose run &#8211;rm web rake secret \u2190 \u300c\u30fc\u30fc\uff52\uff4d\u300d\u30cf\u30a4\u30d5\u30f3\uff12\u3064\u3067\u3059\u3002<br \/>\n<\/span><span class=\"s1\">Creating network &#8220;mastodon_default&#8221; with the default driver<br \/>\n<\/span><span class=\"s1\">Pulling redis (redis:alpine)&#8230;<br \/>\n<\/span><span class=\"s1\">Trying to pull repository docker.io\/library\/redis &#8230;<br \/>\n<\/span><span class=\"s1\">Pulling repository docker.io\/library\/redis<br \/>\n<\/span><span class=\"s2\">ERROR<\/span><span class=\"s1\">: Network timed out while trying to connect to https:\/\/index.docker.io\/v1\/repositories\/library\/redis\/images. You may want to check your internet connection or if you are behind a proxy.<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">docker\u306epull\u306a\u3069\u3078\u306e\u30d7\u30ed\u30ad\u30b7\u9069\u7528\u306f\u3053\u3061\u3089\u3002<\/p>\n<p><a href=\"http:\/\/qiita.com\/jeffi7\/items\/3e40c59744b5801fd40a\" target=\"_blank\">\u9632\u706b\u58c1\u306e\u4e2d\u306e Docker<\/a><\/p>\n<p class=\"p1\"><span class=\"s1\">\u300c\/etc\/systemd\/system\/docker.service.d\/http-proxy.conf\u300d\u3092\u4f5c\u3063\u305f\u3089(\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u4f5c\u3063\u305f)\u3001<\/span><\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\"># systemctl daemon-reload \u2190\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3042\u3068\u3067\u8abf\u3079\u308b\u3002<br \/>\n<\/span>#&nbsp;<span class=\"s1\">systemctl restart docker<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u518d\u30c8\u30e9\u30a4\uff01\u304c\u3001\u307e\u305fSSL\u306e\u3042\u308c\u304c\u3002\u3082\u3046\u3081\u3093\u3069\u3044\u306e\u3067\u4e00\u65e6FortiGate\u306eSSL\u5fa9\u53f7\u5316\u3092\u5916\u3059\u3002<\/p>\n<p class=\"p1\">\u4f59\u8ac7\u3067\u3059\u304c\u3001\u6c17\u8efd\u306bSSL\u5fa9\u53f7\u5316\u3092\u3084\u308d\u3046\u3068\u3044\u3046\u8f29\u306b\u306f\u300c\u4e00\u5ea6\u3042\u306a\u305f\u306e\u304a\u5bb6\u3067\u8a66\u3057\u3066\u3042\u3052\u307e\u3057\u3087\u3046\u304b\uff1f\u300d\u3068\u3044\u3046\u3053\u3068\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u3060\u3063\u3066\u672c\u5f53\u306b\u5927\u5909\u3060\u3082\u306e\u3002<\/p>\n<p class=\"p1\">\u304a\u3001redis\u3001postgres\u3001ruby\u304cpull\u3055\u308c\u305f\uff01<\/p>\n<p class=\"p1\">\u3078\u30fcdocker\u3063\u3066\u3053\u3046\u3044\u3046\u3082\u306e\u306a\u3093\u3060\u306d\u3002<\/p>\n<p class=\"p1\">\u3050\u3049\u304a\u304a\u304a\u304a\u3002<\/p>\n<p class=\"p1\">\u30b3\u30f3\u30c6\u30ca\u4e0a\u306eAlpine\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u30b3\u30de\u30f3\u30c9\u304c\u30cd\u30c3\u30c8\u306b\u7e4b\u3044\u3067\u308b\u3063\u307d\u3044\u3002<\/p>\n<p class=\"p1\">\u3082\u3046\u3044\u3044\u3002443\u5168\u958b\u306b\u3057\u3066\u3084\u3063\u305f\u305c\uff01\u8d85\u5feb\u9069\u3060\u305c\uff01\u30d7\u30ed\u30ad\u30b7\u306a\u3093\u3066\u3001\u307e\u3057\u3066\u3084SSL\u5fa9\u53f7\u5316\u306a\u3093\u3066\u3044\u3089\u3093\u306e\u3084\uff01<\/p>\n<p class=\"p1\">\u3055\u3066\u3001secret\u306e\u751f\u6210\u306b\u623b\u308a\u307e\u3059\u3002\u4e00\u56de\u76ee\u306f\u304b\u306a\u308a\u6642\u9593\u304c\u304b\u304b\u308b\u307f\u305f\u3044\u3002<\/p>\n<p class=\"p1\">\u3063\u3066\u304b\u30b2\u30b9\u30c8\u304c\u56fa\u307e\u3063\u305forz<\/p>\n<p class=\"p1\">\u4e00\u65e6\u518d\u8d77\u52d5\u3002<\/p>\n<p class=\"p1\">\u4e8c\u56de\u76ee\u79fb\u884c\u306f\u3059\u3050\u7d42\u308f\u308a\u307e\u3059\u3002<\/p>\n<p class=\"p1\">\uff13\u56de\u5b9f\u884c\u3057\u3066\u3001\u300c<span class=\"s1\">.<\/span><span class=\"s1\">env.production\u300d\u306e\u4ee5\u4e0b\u306b\u66f8\u304d\u8fbc\u307f\u3002<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">PAPERCLIP_SECRET<br \/>\n<\/span><span class=\"s1\">SECRET_KEY_BASE<br \/>\n<\/span><span class=\"s1\">OTP_SECRET<\/span><\/p>\n<p class=\"p1\">\u7d9a\u3044\u3066SMTP\u306e\u8a2d\u5b9a\u3002\u3046\u3061\u306f\u81ea\u9bd6\u306a\u306e\u3067\u81ea\u9bd6\u306e\u8a2d\u5b9a\u3092\u3002\u3053\u3053\u306f\u308f\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u7701\u7565\u3057\u307e\u3059\u3002<\/p>\n<p class=\"p1\">\u30fb\u30d3\u30eb\u30c9\u3059\u308b<\/p>\n<blockquote>\n<p class=\"p1\">docker-compose build<\/p>\n<\/blockquote>\n<p class=\"p1\">\u3053\u308c\u306f\u3059\u3050\u7d42\u308f\u3063\u305f\u3002\u3053\u3053\u307e\u3067\u3067docker images\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u3063\u3066\u3044\u305f\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\"># docker images<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">REPOSITORY <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>TAG <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>IMAGE ID<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>CREATED <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>SIZE<br \/>\n<\/span><span class=\"s1\">gargron\/mastodon <span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>latest<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u307b\u3052\uff1f\u96a0\u3059\u5fc5\u8981\u3042\u308b\uff1f<\/span><span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span>7 minutes ago <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; <\/span>708.5 MB<br \/>\n<\/span><span class=\"s1\">docker.io\/postgres <span class=\"Apple-converted-space\">&nbsp; <\/span>alpine<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>\u307b\u3052\uff1f<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>9 days ago<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>37.7 MB<br \/>\n<\/span><span class=\"s1\">docker.io\/ruby <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; <\/span>2.4.1-alpine<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>\u307b\u3052\uff1f<\/span><span class=\"s1\"><span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>3 weeks ago <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>56.24 MB<br \/>\n<\/span><span class=\"s1\">docker.io\/redis<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; <\/span>alpine<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>\u307b\u3052\uff1f<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>6 weeks ago <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>19.82 MB<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u30fb\u30b3\u30f3\u30c6\u30ca\u7fa4\u306e\u7acb\u3061\u4e0a\u3052<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\"># docker-compose up -d<br \/>\n<\/span><span class=\"s1\">mastodon_redis_1 is up-to-date<br \/>\n<\/span><span class=\"s1\">mastodon_db_1 is up-to-date<br \/>\n<\/span><span class=\"s1\">Creating mastodon_sidekiq_1<br \/>\n<\/span><span class=\"s1\">Creating mastodon_web_1<br \/>\n<\/span><span class=\"s1\">Creating mastodon_streaming_1<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u307b\u30fc\u3002<\/p>\n<p class=\"p1\">\u30fb\u30a4\u30e1\u30fc\u30b8\u306b\u5165\u3063\u3066DB\u306e\u8a2d\u5b9a<\/p>\n<p class=\"p1\">\u3053\u3046\u3084\u3063\u3066docker\u306b\u5165\u308b\u3093\u3067\u3059\u306d\u3002<\/p>\n<blockquote>\n<p class=\"p1\"># docker exec -it mastodon_db_1 \/bin\/bash<br \/>\n# su &#8211; postgres<br \/>\n<span class=\"s1\">$ createuser -P \u6c7a\u3081\u305fDB\u30e6\u30fc\u30b6\u540d \u2190\u3053\u3063\u304b\u3089Postgres<br \/>\n$ c<\/span><span class=\"s1\">reatedb \u6c7a\u3081\u305fDB\u540d -O \u4f5c\u3063\u305f\u30e6\u30fc\u30b6\u540d<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u30fbDB\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30c8\uff08\u4f55\u3084\u3063\u3066\u308b\u304b\u306f\u3088\u304f\u308f\u304b\u3089\u3093\uff09\u3068\u30a2\u30bb\u30c3\u30c8\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\uff08\u540c\u3058\u304f\uff09<\/p>\n<blockquote>\n<p class=\"p1\"># docker-compose run &#8211;rm web rails db:migrate\u3000\u2190 \u300c\u30fc\u30fc\uff52\uff4d\u300d\u3067\u3059\u3002<br \/>\n#&nbsp;docker-compose run &#8211;rm web rails assets:precompile\u3000\u2190 \u300c\u30fc\u30fc\uff52\uff4d\u300d\u3067\u3059\u3002<\/p>\n<\/blockquote>\n<p class=\"p1\">DB\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30c8\u306f\u3059\u3050\u7d42\u308f\u308b\u3051\u3069\u3001\u30a2\u30bb\u30c3\u30c8\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u306f\u6570\u5206\u304b\u304b\u308b\u611f\u3058\u304b\u306a\u3002<\/p>\n<p class=\"p1\">\u30fb\u30b3\u30f3\u30c6\u30ca\u518d\u8d77\u52d5<\/p>\n<blockquote>\n<p class=\"p1\"># docker stop $(docker ps -a -q) &amp;&amp; docker-compose up -d<\/p>\n<\/blockquote>\n<p class=\"p1\">\u30fbnginx\u306e\u8a2d\u5b9a<\/p>\n<p class=\"p1\">\u3000\u3053\u306e\u8fba\u53c2\u8003\u306b\u300c\/etc\/nginx\/conf.d\/mastodon.conf\u300d\u3092\u4f5c\u308b\u3002\u3068\u308a\u3042\u3048\u305a\u8a3c\u660e\u66f8\u306f\u65e2\u5b58\u3067\u3082\u3063\u3066\u308b\u30aa\u30ec\u30aa\u30ec\u3067\u3002<br \/>\n\u304a\u3044\u304a\u3044\u8a3c\u660e\u66f8\u3068\u308b\u304b\u306a\u30fc\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/tootsuite\/documentation\/blob\/master\/Running-Mastodon\/Production-guide.md\" target=\"_blank\">https:\/\/github.com\/tootsuite\/documentation\/blob\/master\/Running-Mastodon\/Production-guide.md<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>nginx\u306erestart\u3057\u3066\u3001\u3042\u3068\u81ea\u52d5\u8d77\u52d5\u3092\u3057\u3066\u30fb\u30fb\u30fb\u30fb<\/p>\n<p>\u52d5\u3044\u305f\u30fc\u3002<\/p>\n<p><a href=\"https:\/\/media.hits-net.com\/uploads\/2017\/04\/9271b4c763f7ded80e599110bbfa41b7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3549\" src=\"https:\/\/media.hits-net.com\/uploads\/2017\/04\/9271b4c763f7ded80e599110bbfa41b7-300x292.png\" alt=\"\" width=\"300\" height=\"292\" srcset=\"https:\/\/media.hits-net.com\/uploads\/2017\/04\/9271b4c763f7ded80e599110bbfa41b7-300x292.png 300w, https:\/\/media.hits-net.com\/uploads\/2017\/04\/9271b4c763f7ded80e599110bbfa41b7.png 670w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u65e9\u901f\u30e6\u30fc\u30b6\u767b\u9332\u3057\u305f\u3051\u3069\u3001\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u30df\u30b9\u3063\u3066\u305f\u3002\u3002\u3002<\/p>\n<p>\u3055\u3066\u3001\u3069\u3046\u4fee\u6b63\u3059\u308b\u304b\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u6b62\u3081\u308b\u3002<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\"># docker-compose stop<\/span><\/p>\n<\/blockquote>\n<p>\u305d\u3082\u305d\u3082\u9593\u9055\u3063\u3066\u3044\u305f\u306e\u306f\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306e\u8a8d\u8a3c\u8a2d\u5b9a\u3002<br \/>\n\u3046\u3061\u306f\u30aa\u30f3\u30d7\u30ec\u306a\u306e\u3067\u8a8d\u8a3c\u4e0d\u8981\u3002<\/p>\n<p>\u3063\u3066\u3053\u3068\u3067\u3001\u300c<span class=\"s1\">.env.production<\/span>\u300d\u306e\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u5165\u308c\u308b\u3002(\u30c7\u30d5\u30a9\u30eb\u30c8plain\u3092\u4fee\u6b63)<\/p>\n<p class=\"p1\"><span class=\"s1\">SMTP_AUTH_METHOD=none<\/span><\/p>\n<p class=\"p1\">\u30d3\u30eb\u30c9<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\"># docker-compose build<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">\u4e0a\u3052\u308b<\/p>\n<blockquote>\n<p class=\"p1\"># docker-compose up -d<\/p>\n<\/blockquote>\n<p class=\"p1\">\u3042\u308c\u3001\u76f4\u3089\u306d\u3002\u624b\u9806\u9055\u3046\u306e\u304b\u306a\u3002<\/p>\n<p class=\"p1\">\u3042\u30fc\u3001\u306a\u308b\u307b\u3069\u3002\u30b3\u30e1\u30f3\u30c8\u306b\u306fLOGIN\u3068PASSWORD\u3092\u30d6\u30e9\u30f3\u30af\u306b\u3057\u3068\u3051\u3063\u3066\u66f8\u3044\u3066\u308b\u3051\u3069\u3001\u3053\u308c\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u306a\u3044\u3068\u30c0\u30e1\u3060\u306d\u3002<\/p>\n<p class=\"p1\">\u3066\u3053\u3068\u3067\u3001\u767b\u9332\u3067\u304d\u307e\u3057\u305f\u30fb\u30fb\u30fb\u304c\u3002<\/p>\n<p class=\"p1\">\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3082\u307e\u3063\u304f\u308d\u3084\u3093\u3051\u30fc\uff01\uff01\uff01\uff01<\/p>\n<p class=\"p1\">\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044orz<\/p>\n<p class=\"p1\">\u4eca\u65e5\u306f\u3053\u3053\u307e\u3067\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u3002\u307e\u305f\u306e\u6a5f\u4f1a\u306b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3082\u3002\u3053\u3093\u3070\u3093\u306f\u3002 \u306a\u3093\u304b\u6d41\u884c\u3063\u3066\u308b\u306d\u3002\u3063\u3066\u3053\u3068\u3067\u3001CentOS 7\u306e\u7df4\u7fd2\u3068\u304bDocker\u306e\u52c9\u5f37\u306e\u305f\u3081\u306b\u7acb\u3066\u3066\u307f\u307e\u3059\u3002 \u3044\u3044\u52a0\u6e1b\u306bCentOS7\u3082\u89e6\u3063\u3068\u304b\u306a\u3044\u3068\u306a\uff5e\u3068\u6700\u8fd1\u3064\u304f\u3065\u304f\u601d\u3063\u3066\u305f\u306e\u3067\u3044\u3044\u30cd\u30bf\u3067\u3059\u306d\u3002 Docker &hellip; <a href=\"https:\/\/www.hits-net.com\/blog\/?p=3537\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">mastodon\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u7acb\u3066\u308b<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5,3,4,29],"tags":[],"class_list":["post-3537","post","type-post","status-publish","format-standard","hentry","category-linux","category-3","category-4","category-29"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4WH5i-V3","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.hits-net.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hits-net.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hits-net.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hits-net.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hits-net.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3537"}],"version-history":[{"count":10,"href":"https:\/\/www.hits-net.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3537\/revisions"}],"predecessor-version":[{"id":3550,"href":"https:\/\/www.hits-net.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3537\/revisions\/3550"}],"wp:attachment":[{"href":"https:\/\/www.hits-net.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hits-net.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hits-net.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}