You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running locally or for a test deployment, use of localhost is acceptable.
33
-
To spawn a new instance of Moodle it's necessary to create a folder with the Moodle source and create both container needed:
26
+
To spawn a new instance of Moodle it's necessary to create a folder with the Moodle source and create both container needed. The following script download Moodle from main GIT repository and create both containers (PHP and Postgres).
34
27
35
28
```
36
29
./start-containers.sh
37
30
```
38
31
39
32
The start-containers.sh script:
40
-
- If it's first time, it will create both docker containers needed (PHP server and DB).
33
+
- If it's first time, it will download last Moodle version from GIT and create both docker containers needed (PHP server and DB).
41
34
- If the containers are created, it will start them.
42
35
43
36
In both cases, at the end of the execution are showed the instructions to access them. By default:
44
37
45
38
```
46
-
To connect to PostgreSQL: host:port=127.0.0.1:32769, dbuser=moodle, dbpwd=secret
47
39
To access Moodle: http://127.0.0.1:8000
48
-
To enter shell in moodle container shell: docker exec -it moodle_core-php bash
49
-
Admin account: admin/Abcd1234$
40
+
Admin credentials: admin/Abcd1234$
41
+
42
+
To connect to PostgreSQL: host:port=127.0.0.1:32769, dbuser=moodle, dbpwd=secret
43
+
To enter shell in moodle container shell: docker exec -it moodle_33_core-php bash
44
+
```
45
+
46
+
By default, the script creates a docker with Moodle 3.3. It's possible create a Moodle 3.2 docker with the following callback:
47
+
48
+
```
49
+
./start-containers.sh moodle32
50
50
```
51
51
52
52
53
+
53
54
## Caveats
54
-
The following aren't handled, considered, or need work:
55
+
The following aren't included:
55
56
* moodle cronjob (should be called from cron container)
56
-
* log handling (stdout?)
57
+
* log handling. Logs are stored in the default stout (/var/log/apache2/).
0 commit comments