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 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 # Install Apache, PHP, and other required extensions
# ADDED: sudo and mariadb-client for the entrypoint script # ADDED: sudo and mariadb-client for the entrypoint script
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
...@@ -25,6 +28,9 @@ 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/apache2/conf.d/99-moodle.ini
COPY moodle.ini /etc/php/8.2/cli/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 # Download and unpack Moodle
ARG MOODLE_VERSION=403 ARG MOODLE_VERSION=403
RUN rm -rf /var/www/html RUN rm -rf /var/www/html
......
...@@ -29,10 +29,8 @@ services: ...@@ -29,10 +29,8 @@ services:
depends_on: depends_on:
- db - db
restart: unless-stopped restart: unless-stopped
environment: env_file:
- MOODLE_WWWROOT= "http://docker:8080" - .env
- MOODLE_ADMIN_USER=user
- MOODLE_ADMIN_PASS=QAYwsx@12345
backend: backend:
container_name: 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