Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Moodle app port to be configured #312

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NeillM
Copy link
Contributor

@NeillM NeillM commented Dec 10, 2024

Before this change the moodle-app was always put onto port 8100, this makes it impossible (without using local.yml) to have multiple instances of moodle-docker running if they also have a copy of the app running.

After this change while be default nothing should change you may now select the exposed port, or disable it altogether using MOODLE_DOCKER_APP_PORT

Before this change MOODLE_DOCKER_APP_PORT was used internally to select the source port for the app, this is now done using MOODLE_DOCKER_APP_INTERNAL_PORT because that name fits better with the other environment variables that let the user set the port available on the host.

Before this change the moodle-app was always put onto port 8100, this makes it impossible to
have multiple instances of moodle-docker running if they also have a copy of the app running.

After this change while be default nothing should change you may now select the exposed port,
or disable it altogether using MOODLE_DOCKER_APP_PORT

Before this change MOODLE_DOCKER_APP_PORT was used internally to select the source port for
the app, this is now done using MOODLE_DOCKER_APP_INTERNAL_PORT because that name fits better
with the other environment variables that let the user set the port available on the host.
@NeillM
Copy link
Contributor Author

NeillM commented Dec 10, 2024

I ran this both on Linux and Windows using docker images for the app:

  • No MOODLE_DOCKER_APP_PORT to check that the app was started on port 8100 as before these changes
  • MOODLE_DOCKER_APP_PORT set to 0 to check no mapping happened
  • MOODLE_DOCKER_APP_PORT set to a port other than 8100 to check that was picked up

@NeillM
Copy link
Contributor Author

NeillM commented Dec 10, 2024

One of the unit tests failed... since I did not change any Moodle code I'm not sure that is related to this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant