Install WordPress Pete for macOS Docker:

  1. Install Docker
  2. Install GIT
  3. Open terminal
  4. Stop default apache server in macOs:

sudo -S apachectl stop

sudo -S launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null

  1. Browse to the folder where you want to install WordPress Pete and then clone the project using GIT

cd /Users/yourusername/Sites
git clone https://github.com/peterconsuegra/wordpress-pete-docker.git

  1. Run the docker application and then run the following commands from the terminal:

For Intel mac:
cd /Users/yourusername/Sites/wordpress-pete-docker
docker-compose -f mac.yml up --build

For M1 chip mac:
cd /Users/yourusername/Sites/wordpress-pete-docker
docker-compose -f mac_m1.yml up --build

  1. Wait until the docker build command finishes
  2. open: http://pete.petelocal.net/

Check the installation video for macOS:

Access to apache container console:

For Intel mac:
cd /Users/yourusername/Sites/wordpress-pete-docker
docker-compose -f mac.yml exec apache /bin/sh

For M1 chip mac:
cd /Users/yourusername/Sites/wordpress-pete-docker
docker-compose -f mac_m1.yml exec apache /bin/sh

Access to mariadb container console:

For Intel mac:
cd /Users/yourusername/Sites/wordpress-pete-docker
docker-compose -f mac.yml exec mariadb /bin/sh

For M1 chip mac:
cd /Users/yourusername/Sites/wordpress-pete-docker
docker-compose -f mac_m1.yml exec mariadb /bin/sh

Stop docker containers:

For Intel mac:
cd /Users/yourusername/Sites/wordpress-pete-docker
docker-compose -f mac.yml down

For M1 chip mac:
cd /Users/yourusername/Sites/wordpress-pete-docker
docker-compose -f mac_m1.yml down

WordPress Pete Docker Settings:

Supported PHP versions: 7.2, 7.3, 7.4

More:

Tutorials

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *