Skip to content

ninghao/ninghao-docker-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ninghao-docker-wordpress

Running WordPress in Docker container.

.env

Create a file in root directory called .env, put following content in the file. Modify this file content according to your needs.

WORDPRESS_VERSION=5.0.3
WORDPRESS_PORT=8083

WORDPRESS_DB_USER=wordpress
WORDPRESS_DB_PASSWORD=A7yXSYuJBSIixu
WORDPRESS_DB_NAME=wordpress

Run

Open your system terimal, go to the project directory, and run following command.

docker-compose up -d

##WP CLI Change w-store_wordpress_1 to your WordPress container name.

docker run -it --rm  --volumes-from w-store_wordpress_1  --network container:w-store_wordpress_1  wordpress:cli user list

Install WordPress

About

Running WordPress in Docker container.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published