moodlehq / moodle-docker

A docker environment for moodle developers
GNU General Public License v3.0
376 stars 245 forks source link

How to change only localhost binding? #186

Closed fishfree closed 2 years ago

fishfree commented 2 years ago

I followed the REAME, but docker ps always shows 127.0.0.1:8000->80/tcp I tried editing from MOODLE_DOCKER_WEB_HOST from localhost to0.0.0.0 in both bin/moodle-docker-compose.cmdand bin/moodle-docker-compose files, but still no work.

scara commented 2 years ago

Hi @fishfree, what is your final goal?

In my DEV environment the Docker Host runs on a different server and I'm used to set MOODLE_DOCKER_WEB_HOST with the proper IP address of my Docker Host i.e. an explicit IP address binding - see e.g. the Testing Instruction of MDL-63770.

HTH, Matteo

fishfree commented 2 years ago

@scara Thank you for your help. The MDL-63770 solved my problem.