[ ARM / x86 ] MySQL 8.0.15 / 5.7.2 PHP 7.2.15 APACHE 2.4.29 LAMP STACK
4.1K

[ ARM / x86 ] LAMP STACK docker-based environment designed to work on either ARM architecture based systems as well as standard x86 platform. Depends on selected platform package availability may vary due to internal operating system limitations, please refer to the description below.
By 01/03/2019 Google Page Speed was not available for ARM microarchitecture.
Latest available version of MySQL for ARM based devices during that built was 5.7.25.
Quick start can be done by either issuing following commands or by using docker-compose files provided for each platform.
Data persistency can be done by passing additional "-v /docker_lamp/persist_www:/var/www/html" parameter,
this command will map internal "/var/www/html" folder into "/docker_lamp/persist_www" on your local machine.
In the same way MySQL data can be mapped by passing again "-v /docker_lamp/persist_mysql:/var/lib/mysql"
It is entirely up to you where you want to store the data, this is just an example of how to use it.
By using provided docker-compose files data persistency will be turned on automatically for both MySQL and Apache.
$ docker run -p 3306:3306 -p 80:80 -d marekhadas9/lampstack:latest
$ docker run -p 3306:3306 -p 80:80 -d -v /docker_lamp/persist_mysql:/var/lib/mysql -v /docker_lamp/persist_www:/var/www/html marekhadas9/lampstack:latest
$ docker-compose -f /path_to_file/composeX86.yaml up
$ docker run -p 3306:3306 -p 80:80 -d marekhadas9/lampstack:arm
$ docker run -p 3306:3306 -p 80:80 -d -v /docker_lamp/persist_mysql:/var/lib/mysql -v /docker_lamp/persist_www:/var/www/html marekhadas9/lampstack:arm
$ docker-compose -f /path_to_file/composeARM.yaml up
Download composeX86ssl.yaml from my git repository and put it on your server, then run from command line.
$ sudo su
$ docker-compose -f composeX86Ssl.yaml up
Now it's time to identify your current unique container id.
To do so open another terminal window and run while your container is running:
$ sudo su
$ docker container ls
You need to know at least first 3 characters of container id returned by above command (You can use as many characters as you wish, it is just about identifying unique container especially if there is more than one having similar container id running on your machine).
Now using mentioned container id run:
$ docker exec -it 32f bash
Then run:
$ certbot --apache certonly
To issue your brand new certificate and then follow the guidelines displayed on your screen.
Download /conf/default-ssl.conf from my git repository and update it accordingly to the domain name for which you were issuing certificate earlier.
Put your file in /etc/default-ssl.conf
Restart your container, you should be all set with SSL.
Default MySQL users are as follows:
U:root@'%'
P:root
U:phpmyadmin@'localhost'
P:9wBVSFCcyzAY
Depends on how you are going to use your database you can either connect from localhost by using "phpmyadmin" user.
You can also use "root" user for external connections using your server ip address or by using third party software like MySQL Workbench or HeidiSQL
Content type
Image
Digest
Size
258.4 MB
Last updated
over 7 years ago
docker pull marekhadas9/lampstack:armssl