Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install wordpress with one click of docker

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how to use docker one-click installation wordpress-related knowledge, content detailed and easy to understand, simple and fast operation, has a certain reference value, I believe that everyone reading this article how to use docker one-click installation wordpress article will have some gains, let's take a look at it.

Create the zhaoolee-wp folder and create a new configuration file docker-compose.yml inside

mkdir zhaoolee-wp && cd zhaoolee-wp && touch docker-compose.yml

Add the following to docker-compose.yml and save

mysql: image: mysql:5.7 environment: - mysql_root_password=zhaoolee123 - mysql_database=wordpressweb: image: wordpress:4.9.7-php7.0-apache links: - mysql environment: - wordpress_db_password=zhaoolee123 ports: - "0.0.0.0:80:80" working_dir: /var/www/html volumes: - wordpress:/var/www/html

In the sibling directory of docker-compose.yml, run docker-compose up -d

Access the server ip, successfully enter the installation interface

Tips:

Enter the running container:

sudo docker exec -it zhaoolee-wp_web_1 /bin/bash About "How to install WordPress with docker" The content of this article is introduced here, thank you for reading! I believe everyone has a certain understanding of "how to install wordpress with docker" knowledge. If you still want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 268

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report