Running WordPress in Docker container.
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
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