Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to install wordpress with one click of docker

Shulou Source: shulou.com Published: 2022-05-31 10:33:09 11月24日 Update

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.

Tags: One button content knowledge file article run value peer container skill easy to operate folder article easy to understand more server current interface directory look Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Docker Linux Huawei Shulou Information