
Run WordPress inside a docker container using docker-compose on DigitalOcean Platform.
This video is all about an introduction to a course on how to run an instance on DigitalOcean that is configured correctly to run docker and docker-compose. Then WordPress is installed via docker-compose.
Run WordPress inside docker container using docker-compose on DigitalOcean Platform.
This video shows how to install wordpress inside docker container using docker-compose.
Point your domain name to a DigitalOcean.
This video shows you how to connect your domain name to a DigitalOcean Droplet. In this case, we are pointing to the Wordpress instance running on docker that was set up in the last video.
This video shows you how to set up an NGINX Reverse Proxy to route traffic to anything running in docker. In this case, it'll route to the Wordpress instance we have been building over the past few videos.
We need to do this before we can secure our domain name with HTTPS using lets encrypt
Code snippet for nginx configuration:
server {
root /var/www/html;
listen 80;
listen [::]:80;
server_name yourdomain.com www.yourdomain.com;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Finally set up HTTPS/SSL Certificate to access on our Wordpress Docker instance running on Droplet.
Although this shows setup for Wordpress, this will work for anything running via an NGINX reverse proxy. As usual, everything demonstrated in this video is free; in this case the SSL/TLS certificates are provided by LetsEncrypt.
sudo add-apt-repository ppa:certbot/certbot
sudo apt update
sudo apt install -y python3-certbot-nginx
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com
sudo service nginx restart
सिंगल वर्चुअल सर्वर पर मल्टीपल वर्डप्रेस साइट होस्ट करें
DigitalOcean Platform पर docker-compose का उपयोग कर एक docker कंटेनर के अंदर सिंगल वर्चुअल सर्वर पर कई वर्डप्रेस साइट होस्ट करें।
यह कोर्स सभी के बारे में है कि DigitalOcean पर एक इंस्टेंस कैसे चलाया जाए जो डॉक और डॉक-कंपोज़ को चलाने के लिए ठीक से कॉन्फ़िगर किया गया हो। फिर वर्डप्रेस को डॉकटर-कंपोज़ के माध्यम से इंस्टॉल किया जाता है। फिर हम देखेंगे कि docker में चलने वाली किसी भी चीज़ के लिए ट्रैफ़िक को रूट करने के लिए NGINX रिवर्स प्रॉक्सी कैसे सेट करें।
हमें यह करने की आवश्यकता है इससे पहले कि हम अपने डोमेन नाम को HTTPS के साथ सुरक्षित कर सकें, चलो एनक्रिप्ट का उपयोग कर सकते हैं।
More Information about docker:
Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.
In computing, a virtual machine (VM) is the virtualization/emulation of a computer system. Virtual machines are based on computer architectures and provide functionality of a physical computer. Their implementations may involve specialized hardware, software, or a combination.