Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoTA
cota-infra
Commits
69714190
Commit
69714190
authored
Aug 27, 2025
by
Abhishek
Browse files
env file change
parent
001a21d5
Changes
2
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
69714190
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
...
...
docker-compose.yml
View file @
69714190
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment