39 lines
1.9 KiB
Plaintext
39 lines
1.9 KiB
Plaintext
cairn-clickhouse-job:
|
|
image: {{ CAIRN_CLICKHOUSE_DOCKER_IMAGE }}
|
|
user: "{{ APP_USER_ID }}:{{ APP_USER_ID }}"
|
|
depends_on: {{ [("cairn-clickhouse", CAIRN_RUN_CLICKHOUSE)]|list_if }}
|
|
volumes:
|
|
- ../plugins/cairn/apps/clickhouse/auth.json:/scripts/clickhouse-auth.json:ro
|
|
{# Note that the migrations folder is not read-only because we need to bind-mount custom migrations in it #}
|
|
- ../plugins/cairn/apps/clickhouse/migrations.d:/etc/clickhouse-server/migrations.d
|
|
{%- for folder in iter_values_named(suffix="CAIRN_MIGRATIONS_FOLDER") %}
|
|
{%- for file in folder|walk_templates %}
|
|
- ../plugins/{{ file }}:/etc/clickhouse-server/migrations.d/{{ file.split("/")[-1] }}:ro
|
|
{%- endfor %}
|
|
{%- endfor %}
|
|
environment:
|
|
CLICKHOUSE_DO_NOT_CHOWN: "1"
|
|
cairn-superset-job:
|
|
image: {{ CAIRN_SUPERSET_DOCKER_IMAGE }}
|
|
volumes:
|
|
- ../plugins/cairn/apps/superset/superset_config.py:/app/superset_config.py:ro
|
|
- ../plugins/cairn/apps/clickhouse/auth.json:/app/superset/cairn/clickhouse-auth.json:ro
|
|
- ../plugins/cairn/apps/superset/bootstrap:/app/bootstrap:ro
|
|
healthcheck:
|
|
disable: true
|
|
depends_on:
|
|
{% if RUN_REDIS %}- redis{% endif %}
|
|
{% if CAIRN_RUN_POSTGRESQL %}- cairn-postgresql{% endif %}
|
|
cairn-openedx-job:
|
|
image: {{ DOCKER_IMAGE_OPENEDX }}
|
|
environment:
|
|
SERVICE_VARIANT: lms
|
|
SETTINGS: ${TUTOR_EDX_PLATFORM_SETTINGS:-tutor.production}
|
|
volumes:
|
|
- ../apps/openedx/settings/lms:/openedx/edx-platform/lms/envs/tutor:ro
|
|
- ../apps/openedx/settings/cms:/openedx/edx-platform/cms/envs/tutor:ro
|
|
- ../apps/openedx/config:/openedx/config:ro
|
|
- ../plugins/cairn/apps/openedx/scripts:/openedx/scripts:ro
|
|
- ../plugins/cairn/apps/clickhouse/auth.json:/openedx/clickhouse-auth.json:ro
|
|
depends_on: {{ [("mysql", RUN_MYSQL), ("mongodb", RUN_MONGODB)]|list_if }}
|