This is the shortest way to tell the docker engine to run multiple containers at the same time. env files, and run this command: docker-compose up -d Open a terminal in the directory where you put the docker-compose.yml and. You can use docker-compose without this file, but it makes life easier because it contains all the variables that you’re likely to change, and some of them get used more than once in the docker-compose.yml file. MYSQL_ROOT_PASSWORD: $ in the docker-compose.yml file. This is your docker-compose.yml file: version: '2'Ĭommand: '-default-authentication-plugin=mysql_native_password' The most current files can be found on GitHub here. The two files we copy are basically just instructions that docker will use to start your WordPress website. That’s it! You are now running a website on your local machine at If you want to better understand how this works, read on! (Run this from the folder with those two files.) Copy two files, docker-compose.yml and.
These are the steps to start a WordPress server using Docker with minimal effort: Launch a website anywhere and in less than a minute using docker.