Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 03c90eb26a | |||
| ee212c721b | |||
| b9626c73fa | |||
| f097ea5980 | |||
| 41334b438c | |||
| 3ccb858013 |
+10
-2
@@ -1,4 +1,4 @@
|
||||
FROM php:7.4-apache
|
||||
FROM php:8.1-apache
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
@@ -33,7 +33,6 @@ RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
intl \
|
||||
mbstring \
|
||||
xml \
|
||||
xmlrpc \
|
||||
soap \
|
||||
zip \
|
||||
pdo \
|
||||
@@ -56,12 +55,21 @@ RUN cd /opt && \
|
||||
RUN pecl install redis && \
|
||||
docker-php-ext-enable redis
|
||||
|
||||
RUN pecl install channel://pecl.php.net/xmlrpc-1.0.0RC3 && docker-php-ext-enable xmlrpc
|
||||
|
||||
# Optional: Install and enable Imagick (used by Moodle for better image processing)
|
||||
RUN pecl install imagick && docker-php-ext-enable imagick
|
||||
|
||||
# Install Xdebug
|
||||
RUN pecl install xdebug \
|
||||
&& docker-php-ext-enable xdebug
|
||||
|
||||
# Set recommended PHP configuration values for Moodle
|
||||
COPY moodle-php.ini /usr/local/etc/php/conf.d/moodle-php.ini
|
||||
|
||||
# Copy custom php.ini
|
||||
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
||||
|
||||
# Create moodledata directory
|
||||
RUN mkdir -p /var/www/moodledata && \
|
||||
chown -R www-data:www-data /var/www/moodledata && \
|
||||
|
||||
@@ -5,6 +5,7 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
restart: always
|
||||
volumes:
|
||||
- ./site_data:/var/www/html
|
||||
- ./moodledata:/var/www/moodledata
|
||||
@@ -24,6 +25,7 @@ services:
|
||||
|
||||
mysql:
|
||||
image: 'mysql:8'
|
||||
restart: always
|
||||
# ports:
|
||||
# - "127.0.0.1:5436:3306"
|
||||
volumes:
|
||||
|
||||
@@ -2,3 +2,4 @@ upload_max_filesize = 128M
|
||||
post_max_size = 128M
|
||||
memory_limit = 512M
|
||||
max_execution_time = 300
|
||||
max_input_vars = 10000
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
zend_extension=xdebug
|
||||
|
||||
xdebug.mode=debug
|
||||
xdebug.start_with_request=yes
|
||||
xdebug.client_host=172.17.80.1
|
||||
xdebug.client_port=9003
|
||||
xdebug.log=/tmp/xdebug.log
|
||||
|
||||
; Optional for development
|
||||
xdebug.discover_client_host=true
|
||||
xdebug.idekey=VSCODE
|
||||
Reference in New Issue
Block a user