Skip to content

Commit cb24a63

Browse files
authored
Reviewed install instructions
1 parent 4e77a3e commit cb24a63

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33

44
A Dockerfile that installs and runs Moodle from external source with Postgres Database.
5-
6-
The PHP code of Moodle is mounted from the host's subdirectory `./moodle`.
5+
The PHP code of Moodle is mounted from a host's subdirectory.
76

87
All the scripts must be run from the directory containing `Dockerfile` and `docker-compose.yml`.
98

@@ -12,12 +11,6 @@ All the scripts must be run from the directory containing `Dockerfile` and `dock
1211

1312
Requires Docker to be installed and, optionally, Docker-compose as well.
1413

15-
Create a subdirectory named `moodle`, containing the moodle installation to be used. It's possible to clone from git:
16-
17-
```
18-
git clone -b MOODLE_33_STABLE git://git.moodle.org/moodle.git
19-
```
20-
2114

2215
## Installation
2316

@@ -30,30 +23,38 @@ cd docker-moodle-postgres
3023
## Usage
3124

3225
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).
3427

3528
```
3629
./start-containers.sh
3730
```
3831

3932
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).
4134
- If the containers are created, it will start them.
4235

4336
In both cases, at the end of the execution are showed the instructions to access them. By default:
4437

4538
```
46-
To connect to PostgreSQL: host:port=127.0.0.1:32769, dbuser=moodle, dbpwd=secret
4739
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
5050
```
5151

5252

53+
5354
## Caveats
54-
The following aren't handled, considered, or need work:
55+
The following aren't included:
5556
* 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/).
5758
* email (does it even send?)
5859

5960

0 commit comments

Comments
 (0)