Giter Site home page Giter Site logo

ellakcy / docker-moodle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmhardison/docker-moodle

8.0 8.0 13.0 365 KB

A complete fully automated moodle installation

License: GNU General Public License v3.0

Shell 4.65% PHP 78.51% Dockerfile 7.07% Python 9.77%
docker docker-compose moodle

docker-moodle's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-moodle's Issues

Cannot run this ... can't connect to database.

Hi

I ran this as:

docker run -d --name DB -e MYSQL_DATABASE=moodle -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_ONETIME_PASSWORD=yes -e MYSQL_USER=moodle -e MYSQL_PASSWORD=moodle mysql
docker run -d -P --name moodle --link DB:DB -e MOODLE_URL=http://0.0.0.0:8080 -e MOODLE_DB_TYPE="mysql" -p 8080:80 ellakcy/moodle:mysql_maria_apache

but am getting the error:

Pinging mysql database attempt 1
moodle_db: forward host lookup failed: Unknown host

Any idea what is wrong?

apache images

Hello,

can you check the apache images? It looks like all of them running with php-fpm istead of apache.

Br,
Adam

Trying to enable the exif extension in the container

I'm trying to enable the exif extension for php.
I renamed the php.ini-development to php.ini and uncommented the extension, yet when I try to run a php script to create an scss preset from bootswatch php tells me the extension is missing. Do you know how to fix this?

Thank you

Startup time

Can you please confirm that, in production, you are running a moodle install (entrypoint.sh) every time the container starts?
In production, how much does this slow down the startup process?
Thanks

Mount mysql volumes as folders

The mysql and mariadb images are teminated if normal volumes are used. There's an unexpected termination if docker volumes used.

Moodle home page not loaded

I install the docker image as directed in the docker hub, but I get no home/landing page for moodle. I tried it on a mac M2 and docker playground, same iissue.

Error while installing postgres `relation does not exist` on fpm

On running Postgres with fpm and fpm-apline, I'm seeing the following in the logs:

fpm-moodle_fpm_postgres-1     | Installing moodle
fpm-moodle_db_fpm_postgres-1  | 2022-08-09 04:41:15.793 UTC [58] ERROR:  relation "mdl_config" does not exist at character 19
fpm-moodle_db_fpm_postgres-1  | 2022-08-09 04:41:15.793 UTC [58] STATEMENT:  SELECT value FROM mdl_config WHERE name = $1
fpm-moodle_db_fpm_postgres-1  | 2022-08-09 04:41:15.796 UTC [58] ERROR:  relation "mdl_context" does not exist at character 15
fpm-moodle_db_fpm_postgres-1  | 2022-08-09 04:41:15.796 UTC [58] STATEMENT:  SELECT * FROM mdl_context WHERE contextlevel = $1
fpm-moodle_db_fpm_postgres-1  | 2022-08-09 04:41:15.797 UTC [58] ERROR:  relation "mdl_context" does not exist at character 24
fpm-moodle_db_fpm_postgres-1  | 2022-08-09 04:41:15.797 UTC [58] STATEMENT:  SELECT COUNT('x') FROM mdl_context 
fpm-moodle_db_fpm_postgres-1  | 2022-08-09 04:41:15.798 UTC [58] ERROR:  relation "mdl_course" does not exist at character 15
fpm-moodle_db_fpm_postgres-1  | 2022-08-09 04:41:15.798 UTC [58] STATEMENT:  SELECT * FROM mdl_course WHERE category = $1

when the following is running

php /var/www/html/admin/cli/install_database.php \

Note: The setup does finish successfully and moodle works normally at the end.

303 redirect loop when I run the containers behind SSL Reverse Proxy

Over my .env I have setup the following settings

# In case of a reverse proxy please change the following setting
# It should have the url that the USER provides into her/his browser.

MOODLE_URL=https://example.com:8082

# Database configuration
MOODLE_DB_USER=moodle
MOODLE_DB_PASSWORD=somepasswd
MOODLE_DB_NAME=moodle

# Default user
MOODLE_ADMIN=admin
MOODLE_ADMIN_PASSWORD=admin
MOODLE_ADMIN_EMAIL=fakepasswd

# Indicate whethers runs Behind SSL Proxy (set values in true  by default are set as false)
MOODLE_REVERSE_LB="true"
MOODLE_SSL="true"

#mail settings
MOODLE_EMAIL_TYPE_QMAIL=false # Set true is qmail MTA a used
MOODLE_EMAIL_HOST=mail.example.com

But for some reasong I get a 303 redirect loop, therefore the browser fails to load the moodle. How I can fix that?

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.