Code Monkey home page Code Monkey logo

docker-moodle's Introduction

Moodle LMS docker

to deploy moodle, we need moodle images and dbms (mariadb, msql) images

pull image

$ docker pull mridho/lms-moodle:latest
$ docker pull mariadb:10.5.3

deploy interactively

  • create user-define network
$ docker network create moodle
  • run mariadb container
$ mkdir /var/lib/mysql-moodle

$ docker run --name=mariadb-moodle --network=moodle \
   -e MYSQL_ROOT_PASSWORD=m00dle \
   -e MYSQL_USER=moodle \
   -e MYSQL_PASSWORD=m00dle \
   -e MYSQL_DATABASE=lms-moodle \
   -v /var/lib/mysql-moodle:/var/lib/mysql \
   mariadb:latest
  • run moodle container
$ docker run --name=moodle-container --network=moodle -d -p 80:80 mridho/lms-moodle:latest

deploy using docker-compose

docker-compose file link

version: '3'
services:
    db:
        image: mariadb:10.5.3
        volumes:
            - moodle_data:/var/lib/mysql
        restart: always
        environment:
            MYSQL_ROOT_PASSWORD: m00dle
            MYSQL_DATABASE: lms-moodle
            MYSQL_USER: moodle
            MYSQL_PASSWORD: m00dle
        networks:
            - moodle
        
    app:
        depends_on: 
            - db
        image: mridho/lms-moodle:latest
        ports:
            - "80:80"
        restart: always
	networks:
	    - moodle

volumes:
    moodle_data:        

networks:
    moodle:

docker-moodle's People

Contributors

ridhohafidz avatar

Watchers

 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.