Skip to content

A basic LAMP stack environment built using Docker Compose.

License

Notifications You must be signed in to change notification settings

kurvinh/docker-compose-lamp

 
 

Repository files navigation

LAMP stack built with Docker Compose

This is a basic LAMP stack environment built using Docker Compose. It consists following:

  • PHP
  • Apache
  • MySQL

clone the repo, cd into the root folder, run docker-compose up -d

install docker-compose https://docs.docker.com/docker-for-mac/

#apache2 docker exec 7.2.1-webserver-moodle bash service apache2 reload

git clone moodle into the /www folder

#moodle CRON crontab -e from terminal it won't work if you use a 3rd party terminal emulator like zsh install the below cron, and change the folder name for each project

#*/1 * * * * /usr/local/bin/php /var/www/html/online-campus/admin/cli/cron.php > /tmp/cron_online-campus-local.log

#connecting to mysql instance from host to get the docker IP from the external run
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' 5.7-mysql-dev
that IP is the one you will use for the DB your moodle instance will connect to

About

A basic LAMP stack environment built using Docker Compose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 68.5%
  • Shell 30.9%
  • PHP 0.6%