Running WordPress on PHP-5.6 with MySQL-5.7 on Docker container
- WordPress plugins/themes developers often need to make sure their plugins/themes are also compatible with php5.6
- Official WordPress docker image support start from php7.2
Building image
docker-compose build
Running containers:
docker-compose up
Running container in the background -d flag (for “detached” mode)
docker-compose up -d
Running with build:
docker-compose up -d --build
docker-compose exec wordpress bash
docker-compose stop
or
docker-compose down