Public | Automated Build

Last pushed: 3 months ago
Short Description
LAMP Image based on Ubuntu
Full Description

ubuntu-lamp




Dockerized Ubuntu LAMP Stack

  • Ubuntu 16.04
  • Apache 2.4.25
  • PHP 7.0
  • MySQL 5.7

docker run --name lamp -itd -p 80:80 -p 443:443 -p 3306:3306 circa10a/ubuntu-lamp
http://localhost

Notes

  • MySQL credentials are: -u root / -p root

  • Edit config.php for custom URL, DB info

  • Apache docs in /var/www/html/.

Persistent Data

docker run --name lamp -d -v $(pwd):/var/lib/mysql -p 80:80 -p 443:443 circa10a/ubuntu-lamp

Mount in web docs to be served

docker run --name lamp -d -v $(pwd):/var/www/html -p 80:80 -p 443:443 circa10a/ubuntu-lamp

Create a local image:

- git clone https://github.com/circa10a/ubuntu-lamp.git
- cd ubuntu-lamp
- docker build -t myrepo/lamp .
  • Use this docker image as you normally would: docker run -d -p 80:80 myrepo/lamp
Docker Pull Command
Owner
circa10a
Source Repository

Comments (0)