Sign inSign up

sugenk/php82moodle

By sugenk

•Updated about 21 hours ago

Lightweight Alpine Nginx PHP for Bitnami Moodle 5 use PHP 8.2.35 fixed release to address php2shell

Image
Languages & frameworks
Developer tools
Web servers
1

398

sugenk/php82moodle repository overview

⁠Most Lightweight Nginx + PHP 8.2.35 for secure old Moodle 5x App Server

Empty clone of abandoned Bitnami Moodle⁠ image repository , but using lightweight Alpine+Nginx instead of using Ubuntu+Apache, only 134MB (under 47MB compressed) so use /bitnami/moodle for default homedir and change owner to nobody for secure data and writeable directory, you need to mount your moodle directory volume to that directory. look at docker compose example below

⁠docker compose example

networks:
  your-net1:
    external: true

services:
  moodle-dbs:
    image: bitnami/mariadb:11.4.7
    container_name: moodle-dbs
    restart: always
    environment:
      - TZ=Asia/Jakarta
      - MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
      - MARIADB_USER=${MARIADB_USER}
      - MARIADB_PASSWORD=${MARIADB_PASSWORD}
      - MARIADB_DATABASE=${MARIADB_DATABASE}
      - MARIADB_EXTRA_FLAGS=--max-connect-errors=1000 --max_connections=1024
    volumes:
      - ./data/moodle-mdbs:/bitnami/mariadb
      - ./data/moodle-conf/my.cnf:/opt/bitnami/mariadb/conf/my.cnf
    healthcheck:
      test: ["CMD", "mysqladmin", "ping", "-h", "localhost","-p${MARIADB_PASSWORD}"]
      interval: 10s
      retries: 5
    logging:
      driver: json-file
      options:
        max-size: "10m"
        max-file: "3"
    networks:
      - your-net1

  moodle-nginx:
    image: sugenk/php82moodle
    container_name: moodle-nginx
    restart: always
    ports:
      - "80:8080"
    environment:
      - TZ=Asia/Jakarta
    volumes:
      - ./data/moodle-html:/bitnami/moodle
      - ./data/moodle-data:/bitnami/moodledata
    depends_on:
      moodle-dbs:
        condition: service_healthy
    logging:
      driver: json-file
      options:
        max-size: "10m"
        max-file: "3"
    networks:
      - your-net1
    deploy:
      resources:
        limits:
          memory: 2g

⁠PHP Version and module

Copyright (c) The PHP Group
Zend Engine v4.2.35, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.35, Copyright (c), by Zend Technologies

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pgsql
Phar
posix
random
readline
Reflection
session
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
tidy
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Tag summary

Content type

Image

Digest

sha256:04a200de1…

Size

46.2 MB

Last updated

about 21 hours ago

docker pull sugenk/php82moodle