2024-01-18 20:54:20 +01:00
|
|
|
services:
|
|
|
|
|
2025-02-04 18:14:37 +01:00
|
|
|
{% include 'roles/docker-central-database/templates/services/' + database_type + '.yml.j2' %}
|
2024-01-18 20:54:20 +01:00
|
|
|
moodle:
|
2025-02-11 04:49:21 +01:00
|
|
|
container_name: moodle
|
2025-02-03 11:44:13 +01:00
|
|
|
image: docker.io/bitnami/moodle:{{applications.moodle.version}}
|
2024-01-18 20:54:20 +01:00
|
|
|
ports:
|
2024-01-23 20:20:45 +01:00
|
|
|
- 127.0.0.1:{{http_port}}:8080
|
2025-02-04 22:37:07 +01:00
|
|
|
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
2024-01-18 20:54:20 +01:00
|
|
|
volumes:
|
|
|
|
- 'moodle:/bitnami/moodle'
|
|
|
|
- 'data:/bitnami/moodledata'
|
2024-04-04 13:00:06 +02:00
|
|
|
# Healthcheck is not possible due to missing curl and wget in container
|
2025-02-04 22:37:07 +01:00
|
|
|
# @todo implement healthcheck
|
2024-04-04 13:00:06 +02:00
|
|
|
# healthcheck:
|
|
|
|
# test: ["CMD", "curl", "-f", "http://127.0.0.1:8080"]
|
|
|
|
# interval: 1m
|
|
|
|
# timeout: 10s
|
|
|
|
# retries: 3
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
|
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2024-01-18 20:54:20 +01:00
|
|
|
|
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
2024-01-18 20:54:20 +01:00
|
|
|
moodle:
|
|
|
|
data:
|
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|
2024-01-18 20:54:20 +01:00
|
|
|
|