For PHP5.6-FPM with Nginx use Dockerized PHP5.6-FPM with Nginx
├── .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
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 |
File | Description |
---|---|
php.ini | For additional configurations of PHP, еdit this file before deploying the container. |
website.conf | Apache2 basic vhost file. |
It is highly advised to change all names.
Clone repo to your server. I suggest using /opt
directory
sudo git clone https://github.com/eduardsaryan/dockerized-lamp-php5.6.git
Put your webapp/website into the web
folder.
Navigate to the project folder and start containers.
cd /path/to/dockerized-lamp-php5.6
docker-compose up -d