ellakcy / docker-moodle Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jmhardison/docker-moodle
A complete fully automated moodle installation
License: GNU General Public License v3.0
This project forked from jmhardison/docker-moodle
A complete fully automated moodle installation
License: GNU General Public License v3.0
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?
Hello,
can you check the apache images? It looks like all of them running with php-fpm istead of apache.
Br,
Adam
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
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
The mysql and mariadb images are teminated if normal volumes are used. There's an unexpected termination if docker volumes used.
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.
On alpine-fpm images the /usr/local/bin/entrypoint.sh
has not the correct permissions in order to be executed, hence the image fails to launch.
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
docker-moodle/scripts/entrypoint.sh
Line 181 in c68db87
Note: The setup does finish successfully and moodle works normally at the end.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.