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 buildRunning containers:
docker-compose upRunning container in the background -d flag (for “detached” mode)
docker-compose up -dRunning with build:
docker-compose up -d --builddocker-compose exec wordpress bashdocker-compose stop
or
docker-compose down