Hylosium / rpi-docker-lamp

Project with Docker Compose - Building LAMP infrastructure for Raspberry Pi (arm64v8 based devices)

Repository from Github https://github.comHylosium/rpi-docker-lampRepository from Github https://github.comHylosium/rpi-docker-lamp

⚠️ this repository has become read-only, you will no longer receive updates or support

Watch the video πŸ‘‡

Watch the video

rpi-docker-lamp for RaspberryPi

Docker with Apache, MariaDB, PHPMyAdmin and PHP.

How-To-Use

Let's start by downloading the repository to our server.

git clone https://github.com/Hylosium/rpi-docker-lamp.git

Once it's downloaded we get inside the folder.

cd rpi-docker-lamp

I use docker-compose as an orchestrator. To run these containers:

docker-compose up -d
Service Port
HTTP 80
PHPADM 8000
SQL 3306

Open phpmyadmin at http://127.0.0.1:8000 No password needed, only root user. Open web browser to look at a simple php example at http://127.0.0.1:80

Clone YourProject on www/ and then, open web http://127.0.0.1/YourProject

Run MySQL client:

  • docker-compose exec db mysql -u root -p

Infrastructure as code!

Structure of folders:

/docker-lamp/
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ Dockerfile
β”‚
β”œβ”€β”€ conf/
β”‚
β”œβ”€β”€ dump/
β”‚   └── myDb.sql
└── www/
    └── index.php

Infrastructure model

Infrastructure model

About

Project with Docker Compose - Building LAMP infrastructure for Raspberry Pi (arm64v8 based devices)

License:The Unlicense


Languages

Language:PHP 69.0%Language:Dockerfile 31.0%