ubuntu 18, nginx 2.4.x , php 7.0.x, mysql 5.7, supervisord
10K+
moodle@c9786d14b245:~/files/html$ sudo supervisorctl
Cron RUNNING pid 20, uptime 1:30:39
MySQL RUNNING pid 14, uptime 1:30:39
NGINX RUNNING pid 15, uptime 1:30:39
PHP-FPM RUNNING pid 13, uptime 1:30:39
System-Log RUNNING pid 19, uptime 1:30:39
Services and ports exposed
$ docker run -v <your-webapp-root-directory>:/home/moodle/files -p 9022:9011 --name docker-name -d thomasvan/ubuntu18-moodle-nginx-php7-mysql-phpmyadmin-supervisord:latest
After starting the container ubuntu18-moodle-nginx-php7-mysql-phpmyadmin-composer, please check to see if it has started and the port mapping is correct. This will also report the port mapping between the docker container and the host machine.
$ docker ps
0.0.0.0:9011->9022/tcp
You can start/stop/restart and view the error logs of nginx and php-fpm services: http://127.0.0.1:9022
For Windows 10, you need to add route: route add 172.17.0.0 MASK 255.255.0.0 10.0.75.2 manually before using one of the following ways to get internal IP:
docker logs <container-id>:c9786d14b245 login: moodle
Password:
Welcome to Ubuntu 18.04.1 LTS ...
moodle@c9786d14b245:~$ cat ~/readme.txt
IP Address : 172.17.0.2
Web Directory : /home/moodle/files/html
SSH/SFTP User : moodle/moodle
ROOT User : root/root
Database Host : localhost
Database Name : moodle
Database User : moodle/moodle
DB ROOT User : root/root
phpMyAdmin : https://172.17.0.2/phpmyadmin
Now as you've got all that information, you can set up moodle and access the website via IP Address or creating an alias in hosts file
c9786d14b245 login: moodle
Password:
Welcome to Ubuntu 18.04.1 LTS ...
moodle@c9786d14b245:~$ cd files/html/
moodle@c9786d14b245:~/files/html$ echo "install moodle here..."
install moodle here...
moodle@c9786d14b245:~/files/html$ echo "all set, you can browse your website now"
all set, you can browse your website now
moodle@c9786d14b245:~/files/html$
If anyone has suggestions please leave a comment on this GitHub issue.
Requests? Just make a comment on this GitHub issue if there's anything you'd like added or changed.
Content type
Image
Digest
Size
229.3 MB
Last updated
almost 8 years ago
docker pull thomasvan/ubuntu18-moodle-nginx-php7