2024-01-18 20:54:20 +01:00
|
|
|
services:
|
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
2024-01-18 20:54:20 +01:00
|
|
|
moodle:
|
|
|
|
image: docker.io/bitnami/moodle:latest
|
|
|
|
ports:
|
2024-01-23 20:20:45 +01:00
|
|
|
- 127.0.0.1:{{http_port}}:8080
|
2024-04-04 12:24:58 +02:00
|
|
|
restart: {{docker_restart_policy}}
|
|
|
|
logging:
|
|
|
|
driver: journald
|
2024-01-18 20:54:20 +01:00
|
|
|
environment:
|
|
|
|
- MOODLE_DATABASE_HOST={{database_host}}
|
|
|
|
- MOODLE_DATABASE_PORT_NUMBER=3306
|
|
|
|
- MOODLE_DATABASE_USER={{database_username}}
|
|
|
|
- MOODLE_DATABASE_NAME={{database_name}}
|
2024-01-22 18:53:35 +01:00
|
|
|
- MOODLE_DATABASE_PASSWORD={{database_password}}
|
2024-01-18 20:54:20 +01:00
|
|
|
- ALLOW_EMPTY_PASSWORD=no
|
2024-01-22 18:53:35 +01:00
|
|
|
- MOODLE_SITE_NAME="{{moodle_site_name}}"
|
|
|
|
- MOODLE_SSLPROXY=yes
|
|
|
|
- MOODLE_REVERSE_PROXY=yes
|
|
|
|
- MOODLE_USERNAME={{moodle_user_name}}
|
|
|
|
- MOODLE_PASSWORD={{moodle_user_password}}
|
|
|
|
- MOODLE_EMAIL={{moodle_user_email}}
|
|
|
|
- BITNAMI_DEBUG={% if mode_debug | bool %}true{% else %}false{% endif %}
|
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
|
|
|
|
# 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
|
|
|
|