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