Skip to content

Commit

Permalink
Allow multiple instances of Moodle simultaneously
Browse files Browse the repository at this point in the history
  • Loading branch information
jpahullo committed Jan 27, 2020
1 parent d509c8d commit 4e824e3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,27 @@ bin/moodle-docker-wait-for-db
# Shut down and destroy containers
bin/moodle-docker-compose down
```
## Run several Moodle instances

By default, the script will load a single instance. If you want to run two
or more different versions of Moodle at the same time, you have to add this
environment variable prior running any of the steps at `Quick start`:

```bash
# Define a project name; it will appear as a prefix on container names.
export COMPOSE_PROJECT_NAME=moodle34

# Use a different public web port from those already taken
export MOODLE_DOCKER_WEB_PORT=1234

# [..] run all "Quick steps" now
```

Having set up several Moodle instances, you need to have set up
the environment variable `COMPOSE_PROJECT_NAME` to just refer
to the instance you expect to. See
[envvars](https://docs.docker.com/compose/reference/envvars/)
to see more about `docker-compose` environment variables.

## Use containers for running behat tests

Expand Down

0 comments on commit 4e824e3

Please sign in to comment.