Coder Social home page Coder Social logo

kurvinh / docker-compose-lamp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sprintcube/docker-compose-lamp

0.0 1.0 0.0 111 KB

A basic LAMP stack environment built using Docker Compose.

License: MIT License

Dockerfile 68.43% PHP 0.64% Shell 30.93%

docker-compose-lamp's Introduction

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

docker-compose-lamp's People

Contributors

kurvinh avatar narendravaghela avatar derogab avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.