An open API service indexing awesome lists of open source software.

https://github.com/kazuhisya/moodle-docker

Moodle container for use with a docker-compose.
https://github.com/kazuhisya/moodle-docker

docker docker-compose moodle

Last synced: about 2 months ago
JSON representation

Moodle container for use with a docker-compose.

Awesome Lists containing this project

README

          

# moodle docker

[![Circle CI](https://circleci.com/gh/kazuhisya/moodle-docker/tree/master.svg?style=shield)](https://circleci.com/gh/kazuhisya/moodle-docker/tree/master)

This repository provides moodle environment for docker compose.

The container image is available in the [Docker Hub](https://hub.docker.com/r/kazuhisya/moodle/).

## System Requirements

- Docker Engine 1.10.0+
- Docker Compose 1.6.0+

## Get started

```bash
$ cd moodle-docker/
```

First, edit `MOODLE_URL` in your `docker-compose.yml`.

like this:

```yaml
~~ snip ~~
environment:
TZ: Asia/Tokyo
POSTGRES_HOST: moodle_db
POSTGRES_PORT: 5432
POSTGRES_DB: moodle
POSTGRES_USER: moodle
PGPASSWORD: moodle
MOODLE_URL: "http://localhost:8080/moodle" # edit this line!
~~ snip ~~
```

Usually, `MOODLE_URL` sets FQDN of your Docker host.

Next, you can `up` (launch).

```bash
$ docker-compose up -d
$ docker-compose logs -f moodle # and wait for the finish output...
```

```bash
# Sample finish output
moodle_1 | インストールが正常に完了しました。
moodle_1 | Admin account: admin/admin
moodle_1 | first setup done.
```

After seeing the finish output, open `http://:/` in your browser.

## Build own container (optional)

You can use `docker-compose-local.yml`

```bash
$ docker-compose -f docker-compose-local.yml build
$ docker-compose -f docker-compose-local.yml up -d
$ docker-compose logs -f moodle # and wait for the finish output...
```

## Disclaimer

This repository and all files that are included in this, there is no relationship at all with the upstream and vendor.