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. git clone https://github.com/peterconsuegra/wordpress-pete-docker.git
  2. cd wordpress-pete-docker
  3. docker-compose -f unix.yml up --build
  4. Wait until the WordPress Pete installation finishes
  5. open: http://pete.petelocal.net/

Check the installation video for macOS:

Access to apache container console:

docker-compose -f unix.yml exec apache /bin/sh

Access to mysql container console:

docker-compose -f unix.yml exec mysql /bin/sh

docker exec -it mysql mysql -uroot -prootpassword

Stop docker:

docker-compose -f unix.yml down

WordPress Pete Docker Settings:

You can change the docker settings from .env file:

Supported php versions: 7.2, 7.3, 7.4

Change the environment to production to allow domains other than * .petelocal.net

MYSQL Note: When you change the values of the DB_ROOT_PASSWORD in the .env file you must also do it in the /public_html/Pete4/.env file and in every WordPress or Laraval config file you’ve created.

PHP_VERSION=7.4

PETE_INSTALL_VERSION=4.3

ENVIRONMENT=development

DB_ROOT_PASSWORD=rootpassword

DB_NAME=pete_db

DB_USERNAME=otherUser

DB_PASSWORD=password

More:

https://wordpresspete.com/tutorials

https://github.com/peterconsuegra/wordpress-pete-docker

0 Comments

Submit a Comment

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