In this we video we will setup the wordpress container using the DOCKER :-
Install docker using the following video link :-
• Docker installation on ubuntu linux m...
Install the docker compose on linux using following docker official document :-
https://docs.docker.com/compose/insta...
Docker compose file :-
vi docker-compose.yml
version: "3"
services:
#MySQL Database image
my_database:
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: admin@1227
MYSQL_DATABASE: my_wp_database
MYSQL_USER: my_wp_user
MYSQL_PASSWORD: my_wp_user_password
volumes:
mysql:/var/lib/mysql
#WordPress image based on Apache
wordpress:
depends_on:
my_database
image: wordpress:latest
restart: always
ports:
"8082:80"
environment:
WORDPRESS_DB_HOST: my_database:3306
WORDPRESS_DB_USER: my_wp_user
WORDPRESS_DB_PASSWORD: my_wp_user_password
WORDPRESS_DB_NAME: my_wp_database
volumes:
["./:/var/www/html"]
volumes:
mysql: {}
Docker-compose command :-
docker-compose up -d
docker ps
Nginx configration file running our website on 80 port :-
vi wordpress.shivm04.xyz.conf
server {
listen 80;
server_name wordpress.shivm04.xyz; # Edit this to your domain name
client_max_body_size 100M;
location / {
proxy_pass http://localhost:8082;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header Connection "Keep-Alive";
proxy_set_header Proxy-Connection "Keep-Alive";
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
send_timeout 1800;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
}
}
#wordpress
#docker
#ubuntu
Watch video Wordpress Website Setup using the Docker Container , make the URL base website login | Docker=3 online without registration, duration hours minute second in high quality. This video was added by user Devops TerraByte 30 April 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 615 once and liked it 11 people.