This docker contain:
- PHP version : 5.6
- PHPMyAdmin : 5.1.3
- MySQL version : 5.0
- Server version : Apache 2.4
host : localhost:80 (Simply you can call by accessing localhost only without port)
phpmyadmin ports mapping >> 56:80 environment:
- PMA_HOST=db
- PMA_USER=root
- PMA_PASSWORD=secret
- Make sure docker and docker-compose is installed on your machine.
- Clone this repository to your local machine with this command.
then cd into the directory
git clone https://github.com/vpslabs/docker-lampp56.git
cd docker-lampp56 - Run
docker-composeto start the container.docker-compose up -d
- Then you can open
apacheserver athttp://localhost:80andphpmyadminathttp://localhost:56 - Place your
phpproject atpublic_htmldirectory, and you ready to go!
You can change your mysql password on docker-compose.yml file.
Docker dengan Apache, MySQL dan PHP 5.6
- Pastikan docker dan docker-compose sudah terinstal, apabila belum ikuti link tersebut.
- Clone repository ini ke dalam mesin Linux komputer local.
masuk ke direktori hasil download atau bisa gunakan perintah cd berikut
git clone https://github.com/vpslabs/docker-lampp56.git
cd docker-lampp56 - Jalankan
docker-composeuntuk mengaktifkan container.docker-compose up -d
- Akses server
apachemelaluihttp://localhost:80danphpmyadminmelaluihttp://localhost:56 - Letakkan file atau proyek
phpdi dalam folderpublic_html, dan siap digunakan!
Anda bisa mengganti password mysql dengan mengedit file docker-compose.yml .
