Commit 9d4afa5d authored by Abhishek's avatar Abhishek
Browse files

Merge branch 'new_moodle_file_abhishek' into 'master'

env file change

See merge request !11
parents 9716ed68 69714190
Pipeline #11800 passed with stage
in 5 minutes and 39 seconds
FROM debian:bookworm
# Set the DEBIAN_FRONTEND variable to prevent interactive prompts during package installation.
ARG DEBIAN_FRONTEND=noninteractive
# Install Apache, PHP, and other required extensions
# ADDED: sudo and mariadb-client for the entrypoint script
RUN apt-get update && apt-get install -y \
......@@ -25,6 +28,9 @@ RUN apt-get update && apt-get install -y \
COPY moodle.ini /etc/php/8.2/apache2/conf.d/99-moodle.ini
COPY moodle.ini /etc/php/8.2/cli/conf.d/99-moodle.ini
# Set a global ServerName for Apache to suppress the FQDN warning.
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
# Download and unpack Moodle
ARG MOODLE_VERSION=403
RUN rm -rf /var/www/html
......
......@@ -29,10 +29,8 @@ services:
depends_on:
- db
restart: unless-stopped
environment:
- MOODLE_WWWROOT= "http://docker:8080"
- MOODLE_ADMIN_USER=user
- MOODLE_ADMIN_PASS=QAYwsx@12345
env_file:
- .env
backend:
container_name: backend
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment