Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khaledsaikat/wordpress-php56-docker
WordPress on PHP-5.6 using docker
https://github.com/khaledsaikat/wordpress-php56-docker
docker docker-compose mysql mysql57 php php5 php56 php56-docker wordpress
Last synced: 3 months ago
JSON representation
WordPress on PHP-5.6 using docker
- Host: GitHub
- URL: https://github.com/khaledsaikat/wordpress-php56-docker
- Owner: khaledsaikat
- License: mit
- Created: 2020-01-02T23:57:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-03T14:49:06.000Z (about 5 years ago)
- Last Synced: 2024-09-29T19:23:02.579Z (4 months ago)
- Topics: docker, docker-compose, mysql, mysql57, php, php5, php56, php56-docker, wordpress
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 5
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```sh
docker-compose build
```Running containers:
```sh
docker-compose up
```Running container in the background -d flag (for “detached” mode)
```sh
docker-compose up -d
```Running with build:
```sh
docker-compose up -d --build
```## Executing bash of wordpress container
```sh
docker-compose exec wordpress bash
```## Stop services
`docker-compose stop`
or
`docker-compose down`## Access the site:
http://localhost:8080/
## Reference
- https://www.sitepoint.com/how-to-manually-build-docker-containers-for-wordpress/
- https://vsupalov.com/docker-arg-env-variable-guide/