Dockerand docker-compose
- Apache
- mod_rewrite
- GD
- php 5.6.28 or 7.1
- MySql 5.7
- PhpMyAdmin
- Operation check
- php5.6.28
- ✅ baserCMS 3.0.16
- ✅ Wordpress 4.9.8
- php7.1
- ✅ baserCMS 4.1.3
- ✅ Wordpress 4.9.8
$ cd dockker-lamp-php5.6
$ docker-compose build
$ docker-compose up
You can access http://localhost:8080/
├ public_html : Document root
├ docker-compose.yml
└ docker
├ web
├ Dockerfile : php veersion, apache install
├ base.conf : <VirtualHost *:80>
├ php.ini
├ db
├ Dockerfile : mysql install
├ my.cnf
├ logs : server log
Please edit docker/web/Dockerfile
FROM php:5.6.28-apache
# FROM php:7.1-apache
# FROM php:5.6.28-apache
FROM php:7.1-apache
phpMyAdmin : http://localhost:8088/
- database host : 192.168.202.2 (default)
- database user : root
- database pass : root
- database port : 3306