/dockerized-lamp-php5.6

Dockerized PHP 5.6 with Apache and MySQL

Primary LanguageDockerfileGNU General Public License v3.0GPL-3.0

Dockerized PHP5.6

Logo

Status

Image Size Docker Pulls Build Status Licenses

Table of contents

For PHP5.6-FPM with Nginx use Dockerized PHP5.6-FPM with Nginx

Prerequisites

Project Tree

├── .env.db
├── Dockerfile
├── backup
│   ├── db_backup.sh
│   ├── db_restore.sh
│   ├── web_backup.sh
│   └── web_restore.sh
├── conf
|   ├── php.ini
│   └── website.conf
├── docker-compose.yml
└── web
    └── index.php

Backup Folder

File Description
db_backup.sh Small script to backup MySQL database
db_restore Small script to backup web Folder
web_backup.sh Small script to restore MySQL database
web_restore.sh Small script to restore web Folder

Config Folder

File Description
php.ini For additional configurations of PHP, еdit this file before deploying the container.
website.conf Apache2 basic vhost file.

Rename

It is highly advised to change all names.


Deployment

Clone repo to your server. I suggest using /opt directory

sudo git clone https://github.com/eduardevops/dockerized-php5.6.git

Put your webapp/website into the web folder.
Navigate to the project folder and start containers.

cd /path/to/dockerized-php5.6
docker-compose up -d