ã客æ§ã®ãå©ç¨ããã¦ããã¯ã©ã¤ã¢ã³ãPC(WindowsOSãæ³å®)ã«ããã¦ãã³ãã³ãããã³ãããããã¯ãPowerShellãèµ·åãã¦ããã ããä¸å³ã®ããã«çé確èªãè¡ã£ã¦ããã ãã¾ãã
ç§ã¯ããã¾ã§ãæ¯ããæè¡éãã使ãããä½ããµã¤ãã¯ãã¹ã¦LAMPç°å¢ãç´æ¥æ§ç¯ãã¦éå¶ããã¨ããæ¹éã§ããã¦ãã¾ããã ããããéçºç°å¢ã§Dockerã使ãããã«ãªãã¨ãæ¬çªç°å¢ã§ãµã¤ããã¨ã«å¥ã®ç°å¢ãæ§ç¯ãã¦å ¬éããã®ãåå«ã«ãªã£ã¦ãã¾ãããããã§æè¿ã§ã¯ãã£ã¨ãµã¤ããDockerä¸ã§éå¶ããããã«ãªãã¾ããã ããã§åé¡ã«ãªã£ã¦ããã®ãè¤æ°ã®ãµã¤ããã©ããã£ã¦å ¬éããã°ããã®ãåé¡ã«ãªãã¾ããããã§ä»åã¯ãµã¤ãéã®ã³ã³ããã®å段ã¨ãã¦NGINXã§æ§ç¯ãããªãã¼ã¹ãããã·ãéããã¨ã§ãã«ããµã¤ããæ§ç¯ããæ¹æ³ãã¾ã¨ãããã¨æãã¾ãã åºæ¬çã«ã¯ãªãã¼ã¹ãããã·ãæ§æãã1ã¤ã®Docker(docker-composeæ§æ)ã¨ãã®å¾ãã«ç´ã¥ããµã¤ã群(ããããdocker-composeæ§æ)ã¨ããå½¢ã§ãã å¤ã¨ã¤ãªããé¨åã¯NGINXã®ã³ã³ãããæ ããè¨å®ãããã¡ã¤ã³ãã¨ã«å¾ãã«ç´ã¥ãW
ä½ããããï¼è¤æ°ã® Web ã¢ããªã 1 ã¤ã® VPSï¼ã¬ã³ã¿ã«ãµã¼ãã¼ï¼ã§ãã¹ãã£ã³ã°ããå ´åãä¸è¬çã«ã¯ãªãã¼ã¹ãããã·ï¼nginx ãªã©ï¼ãç«ã¦ã¦ãå Web ã¢ããªã®ããã¯ã¨ã³ãã«ç¹ããã¨ã«ãªãã¾ãã ä¾ãã°ãnginx ã®ãã¼ãã£ã«ãã¹ãæ©è½ã使ã£ã¦ãapp1.example.com ã¨ããã¢ãã¬ã¹ã¨ app2.example.com ã¨ããã¢ãã¬ã¹ã§ã¢ã¯ã»ã¹ãããã¨ãã«ãããããå¥ã® Web ã¢ããªãµã¼ãã¼ï¼ããã¯ã¨ã³ãï¼ã«å¦çãæ¯ãåãã¾ãã ããã§ã¯ããªãã¼ã¹ãããã·ã¨ 2 ã¤ã® Web ã¢ããªãå¥ã ã® Docker Compose ã§ç«ã¡ä¸ãã¦é£æºããæ¹æ³ã説æãã¾ãã å³: ãªãã¼ã¹ãããã·ã«ãã Docker Compose é£æº1 ã»ããã® Web ã¢ããªã§ããã°ã1 ã¤ã® Docker Compose å ã«é¢é£ããã³ã³ããããã¹ã¦å«ãã¦ãã¾ãã®ã楽ã§ãããããã§ã¯
åå第3åã®è¨äºã§ã¯ãè¤æ°ã®ã³ã³ãããçµã¿åããã¦ä¸ã¤ã®ãµã¼ãã¹ãæ§ç¯ããæé ãç´¹ä»ãã¾ãããã³ã³ããã®çµã¿åãã次第ã§å¿ è¦ãªç°å¢ãæ§ç¯ããããæ°ããä½ã£ãã³ã³ããã¨æ¢åã®ã³ã³ãããçµã¿åããããã¨ã§ãæ°ãããµã¼ãã¹ãããå°ãªãå´åã§éçºãããã¨æ§ã ãªç¨éã¨ãã¦ä½¿ãããã§ãããããããããããªç°å¢ãä½ã£ã¦ããã¨å½ç¶ç®¡ç対象ã¨ãªãã³ã³ãããå¢ãã¦ãã¾ããããä¿å®æ§ãè½ã¡ã¦ãã¾ãããããã¾ããããããã£ããã®ã解決ããããã®ã¢ããã¼ãã«ã¤ãã¦ç´¹ä»ãé²ãã¦ããã¾ãã ä»åã®ã¹ãããã®æ¦è¦ ååã®è£è¶³ ã¤ã¡ã¼ã¸ã®ç®¡çæ¹æ³ Docker Hub ã®ç¡æãªãã¸ããªã使ã£ãã¤ã¡ã¼ã¸ãã¼ã¸ã§ã³ç®¡çã®è£è¶³ï¼ç®¡çæé ãç´¹ä»ãã¾ãã STEP1 docker compose Docker æ¨æºã®æ©è½ã¨ãã¦æä¾ããã¦ãã docker compose ã身ã«çããè¤æ°ã®ã³ã³ãã管çã便å©ã«ãã¾ãã STEP2 d
ããããã㨠ãããã®VPSã§SSL対å¿ãããã ç¬èªãã¡ã¤ã³ã¯ãåå.comã§åå¾æ¸ã¿ æ¬çªç°å¢ç¨ã®ãã¡ã¤ã³ï¼example.comï¼ããã¹ãç°å¢ç¨ã®ãµããã¡ã¤ã³ï¼test.example.comï¼ã®ä¸¡æ¹ãSSL対å¿ããã å人éçºã§ä¸è¨ãéæããããã«ãããã試è¡é¯èª¤ããã®ã§åå¿é²ã§ãã ãµã¼ãã¼å¨ãã®è¨å®ã¯è©³ãããªãã®ã§ãè¨å®ã誤ã£ã¦ããå¯è½æ§ãããã¾ãã ç°å¢ OS: CentOS7 Webãµã¼ãã¼ï¼Apache v2.4.6 æé Apache ã® SSLã¢ã¸ã¥ã¼ã« mod_ssl ãã¤ã³ã¹ãã¼ã«ãã # yum install mod_ssl å¤æ´ãæå¹ã«ãããããhttpdãåèµ·åãã # systemctl restart httpd å°å ¥ã§ãã¦ããã確èªï¼ssl_module ãä¸è¦§ã«åºã¦ããã°OKï¼ # httpd -M ...ï¼ç¥ï¼ ssl_module (share
VPSãæ軽ã«ã¯ããããªã å½å æå®å¤â»1 使ãããã¨ãã«ä½¿ãããã ã ã·ã³ãã«ãªæéä½ç³»â»2 â»1å½ç¤¾èª¿ã¹ï¼2024å¹´7æ3æ¥ç¾å¨ï¼ â»2åæ¢ä¸ã®VPSã«ãæéãçºçãã¾ãã 1GB æé¡ä¸é 449å 1æéå½ãã 0.7å CPU 1vCPU ã¡ã¢ãª 1GB SSD 20GB NW 100Mbpsä¸é IP IPv4/IPv6 2GB æé¡ä¸é 814å 1æéå½ãã 1.27å CPU 2vCPU ã¡ã¢ãª 2GB SSD 40GB NW 100Mbpsä¸é IP IPv4/IPv6 4GB æé¡ä¸é 1,630å 1æéå½ãã 2.55å CPU 4vCPU ã¡ã¢ãª 4GB SSD 80GB NW 500Mbpsä¸é IP IPv4/IPv6 8GB æé¡ä¸é 3,410å 1æéå½ãã 5.35å CPU 6vCPU ã¡ã¢ãª 8GB SSD 160GB NW 1Gbpsä¸é IP
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}