Skip to content

khaledsaikat/wordpress-php56-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress on PHP-5.6 using docker

Running WordPress on PHP-5.6 with MySQL-5.7 on Docker container

Motivation

  • 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

Running container

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

Executing bash of wordpress container

docker-compose exec wordpress bash

Stop services

docker-compose stop or docker-compose down

Access the site:

http://localhost:8080/

Reference