2022-04-15 08:51:19 +00:00
|
|
|
version: "{{ DOCKER_COMPOSE_VERSION }}"
|
2017-07-03 10:39:19 +00:00
|
|
|
services:
|
|
|
|
|
2023-03-26 01:17:07 +00:00
|
|
|
# Set bind-mounted folder ownership
|
|
|
|
permissions:
|
|
|
|
image: {{ DOCKER_IMAGE_PERMISSIONS }}
|
|
|
|
restart: on-failure
|
|
|
|
entrypoint: []
|
|
|
|
command: ["sh", "/usr/local/bin/setowners.sh"]
|
|
|
|
environment:
|
|
|
|
OPENEDX_USER_ID: "1000"
|
|
|
|
volumes:
|
|
|
|
# Command script
|
|
|
|
- ../apps/permissions/setowners.sh:/usr/local/bin/setowners.sh:ro
|
|
|
|
# Bind-mounted volumes to set ownership
|
|
|
|
- ../../data/lms:/mounts/lms
|
|
|
|
- ../../data/cms:/mounts/cms
|
|
|
|
- ../../data/openedx-media:/mounts/openedx
|
|
|
|
{% if RUN_MONGODB %}- ../../data/mongodb:/mounts/mongodb{% endif %}
|
|
|
|
{% if RUN_MYSQL %}- ../../data/mysql:/mounts/mysql{% endif %}
|
|
|
|
{% if RUN_ELASTICSEARCH %}- ../../data/elasticsearch:/mounts/elasticsearch{% endif %}
|
|
|
|
{% if RUN_REDIS %}- ../../data/redis:/mounts/redis{% endif %}
|
|
|
|
{{ patch("local-docker-compose-permissions-volumes")|indent(6) }}
|
|
|
|
|
2017-07-24 09:32:50 +00:00
|
|
|
############# External services
|
|
|
|
|
2023-04-27 18:25:20 +00:00
|
|
|
{% if RUN_MONGODB -%}
|
2017-07-03 10:39:19 +00:00
|
|
|
mongodb:
|
2020-07-21 07:13:00 +00:00
|
|
|
image: {{ DOCKER_IMAGE_MONGODB }}
|
2017-07-03 10:39:19 +00:00
|
|
|
# Use WiredTiger in all environments, just like at edx.org
|
2021-10-25 12:22:08 +00:00
|
|
|
command: mongod --nojournal --storageEngine wiredTiger
|
2018-02-08 06:40:18 +00:00
|
|
|
restart: unless-stopped
|
feat: run all services as unprivileged containers
With this change, containers are no longer run as "root" but as unprivileged
users. This is necessary in some environments, notably some Kubernetes
clusters.
To make this possible, we need to manually fix bind-mounted volumes in
docker-compose. This is pretty much equivalent to the behaviour in Kubernetes,
where permissions are fixed at runtime if the volume owner is incorrect. Thus,
we have a consistent behaviour between docker-compose and Kubernetes.
We achieve this by bind-mounting some repos inside "*-permissions" services.
These services run as root user on docker-compose and will fix the required
permissions, as per build/permissions/setowner.sh These services simply do not
run on Kubernetes, where we don't rely on bind-mounted volumes. There, we make
use of Kubernete's built-in volume ownership feature.
With this change, we get rid of the "openedx-dev" Docker image, in the sense
that it no longer has its own Dockerfile. Instead, the dev image is now simply
a different target in the multi-layer openedx Docker image. This makes it much
faster to build the openedx-dev image.
Because we declare the APP_USER_ID in the dev/docker-compose.yml file, we need
to pass the user ID from the host there. The only way to achieve that is with a
tutor config variable. The downside of this approach is that the
dev/docker-compose.yml file is no longer portable from one machine to the next.
We consider that this is not such a big issue, as it affects the development
environment only.
We take this opportunity to replace the base image of the "forum" image. There
is now no need to re-install ruby inside the image. The total image size is
only decreased by 10%, but re-building the image is faster.
In order to run the smtp service as non-root, we switch from namshi/smtp to
devture/exim-relay. This change should be backward-compatible.
Note that the nginx container remains privileged. We could switch to
nginxinc/nginx-unprivileged, but it's probably not worth the effort, as we are
considering to get rid of the nginx container altogether.
Close #323.
2021-09-23 10:04:19 +00:00
|
|
|
user: "999:999"
|
|
|
|
volumes:
|
|
|
|
- ../../data/mongodb:/data/db
|
|
|
|
depends_on:
|
2023-03-26 01:17:07 +00:00
|
|
|
- permissions
|
2023-04-27 18:25:20 +00:00
|
|
|
{%- endif %}
|
2017-07-03 10:39:19 +00:00
|
|
|
|
2023-04-27 18:25:20 +00:00
|
|
|
{% if RUN_MYSQL -%}
|
2017-07-03 10:39:19 +00:00
|
|
|
mysql:
|
2020-07-21 07:13:00 +00:00
|
|
|
image: {{ DOCKER_IMAGE_MYSQL }}
|
fix: Reduce MySQL binlog expiry from 30 days to 3
MySQL 8 defaults to a binlog expiry period of 2592000 seconds
(30 days), which for Tutor/Open edX purposes can be considered
excessive.
On the one hand, it is unlikely that a MySQL server configured for
Tutor uses MySQL replication at all (considering that up until Tutor
15 and MySQL 5.7, the binlog was disabled by default, rendering
replication impossible). Even if it does, a replica lagging more than
two days behind the primary server would be unacceptable.
Likewise, it is unlikely that an Open edX database is backed up less
than once a day, thus is is unlikely that Open edX admins would
benefit from the ability to do point-in-time restore over a 30-day
period.
On the other hand, having a 30-day binlog expiry period can
considerably increase the storage space requirements for the MySQL
container, particularly on busy Open edX platforms. When left
unchecked, this can even cause the MySQL container to run into "No
space left on device" situations, disabling the MySQL database
altogether. Thus, the MySQL default settings are likely to be a net
disadvantage for Open edX admins.
Finally, all of the above considerations apply only if the Open edX
administrator has chosen to run their own MySQL and not opted for a
DBaaS solution like AWS RDS.
Thus, it should be acceptable to run with a reduced binlog expiry
period of 3 days (rather than 30) by default.
Therefore, inject the --binlog-expire-logs-seconds=259200 argument
into the Tutor-generated command to start mysqld.
Reference:
https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_expire_logs_seconds
2023-10-23 13:59:44 +00:00
|
|
|
command: >
|
|
|
|
mysqld
|
|
|
|
--character-set-server=utf8mb3
|
|
|
|
--collation-server=utf8mb3_general_ci
|
|
|
|
--binlog-expire-logs-seconds=259200
|
2018-02-08 06:40:18 +00:00
|
|
|
restart: unless-stopped
|
2022-01-03 08:04:12 +00:00
|
|
|
user: "999:999"
|
2017-07-03 10:39:19 +00:00
|
|
|
volumes:
|
2018-12-03 18:59:09 +00:00
|
|
|
- ../../data/mysql:/var/lib/mysql
|
2020-06-01 15:03:28 +00:00
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: "{{ MYSQL_ROOT_PASSWORD }}"
|
2023-04-27 18:25:20 +00:00
|
|
|
{%- endif %}
|
2017-07-03 10:39:19 +00:00
|
|
|
|
2023-04-27 18:25:20 +00:00
|
|
|
{% if RUN_ELASTICSEARCH -%}
|
2018-05-27 11:30:23 +00:00
|
|
|
elasticsearch:
|
2020-07-21 07:13:00 +00:00
|
|
|
image: {{ DOCKER_IMAGE_ELASTICSEARCH }}
|
2021-04-13 20:14:43 +00:00
|
|
|
environment:
|
|
|
|
- cluster.name=openedx
|
|
|
|
- bootstrap.memory_lock=true
|
|
|
|
- discovery.type=single-node
|
|
|
|
- "ES_JAVA_OPTS=-Xms{{ ELASTICSEARCH_HEAP_SIZE }} -Xmx{{ ELASTICSEARCH_HEAP_SIZE }}"
|
2018-05-27 11:30:23 +00:00
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
2018-10-30 08:33:11 +00:00
|
|
|
restart: unless-stopped
|
feat: run all services as unprivileged containers
With this change, containers are no longer run as "root" but as unprivileged
users. This is necessary in some environments, notably some Kubernetes
clusters.
To make this possible, we need to manually fix bind-mounted volumes in
docker-compose. This is pretty much equivalent to the behaviour in Kubernetes,
where permissions are fixed at runtime if the volume owner is incorrect. Thus,
we have a consistent behaviour between docker-compose and Kubernetes.
We achieve this by bind-mounting some repos inside "*-permissions" services.
These services run as root user on docker-compose and will fix the required
permissions, as per build/permissions/setowner.sh These services simply do not
run on Kubernetes, where we don't rely on bind-mounted volumes. There, we make
use of Kubernete's built-in volume ownership feature.
With this change, we get rid of the "openedx-dev" Docker image, in the sense
that it no longer has its own Dockerfile. Instead, the dev image is now simply
a different target in the multi-layer openedx Docker image. This makes it much
faster to build the openedx-dev image.
Because we declare the APP_USER_ID in the dev/docker-compose.yml file, we need
to pass the user ID from the host there. The only way to achieve that is with a
tutor config variable. The downside of this approach is that the
dev/docker-compose.yml file is no longer portable from one machine to the next.
We consider that this is not such a big issue, as it affects the development
environment only.
We take this opportunity to replace the base image of the "forum" image. There
is now no need to re-install ruby inside the image. The total image size is
only decreased by 10%, but re-building the image is faster.
In order to run the smtp service as non-root, we switch from namshi/smtp to
devture/exim-relay. This change should be backward-compatible.
Note that the nginx container remains privileged. We could switch to
nginxinc/nginx-unprivileged, but it's probably not worth the effort, as we are
considering to get rid of the nginx container altogether.
Close #323.
2021-09-23 10:04:19 +00:00
|
|
|
user: "1000:1000"
|
|
|
|
volumes:
|
|
|
|
- ../../data/elasticsearch:/usr/share/elasticsearch/data
|
|
|
|
depends_on:
|
2023-03-26 01:17:07 +00:00
|
|
|
- permissions
|
2023-04-27 18:25:20 +00:00
|
|
|
{%- endif %}
|
2018-05-27 11:30:23 +00:00
|
|
|
|
2023-04-27 18:25:20 +00:00
|
|
|
{% if RUN_REDIS -%}
|
2020-09-17 10:53:14 +00:00
|
|
|
redis:
|
|
|
|
image: {{ DOCKER_IMAGE_REDIS }}
|
2021-02-16 11:12:18 +00:00
|
|
|
working_dir: /openedx/redis/data
|
feat: run all services as unprivileged containers
With this change, containers are no longer run as "root" but as unprivileged
users. This is necessary in some environments, notably some Kubernetes
clusters.
To make this possible, we need to manually fix bind-mounted volumes in
docker-compose. This is pretty much equivalent to the behaviour in Kubernetes,
where permissions are fixed at runtime if the volume owner is incorrect. Thus,
we have a consistent behaviour between docker-compose and Kubernetes.
We achieve this by bind-mounting some repos inside "*-permissions" services.
These services run as root user on docker-compose and will fix the required
permissions, as per build/permissions/setowner.sh These services simply do not
run on Kubernetes, where we don't rely on bind-mounted volumes. There, we make
use of Kubernete's built-in volume ownership feature.
With this change, we get rid of the "openedx-dev" Docker image, in the sense
that it no longer has its own Dockerfile. Instead, the dev image is now simply
a different target in the multi-layer openedx Docker image. This makes it much
faster to build the openedx-dev image.
Because we declare the APP_USER_ID in the dev/docker-compose.yml file, we need
to pass the user ID from the host there. The only way to achieve that is with a
tutor config variable. The downside of this approach is that the
dev/docker-compose.yml file is no longer portable from one machine to the next.
We consider that this is not such a big issue, as it affects the development
environment only.
We take this opportunity to replace the base image of the "forum" image. There
is now no need to re-install ruby inside the image. The total image size is
only decreased by 10%, but re-building the image is faster.
In order to run the smtp service as non-root, we switch from namshi/smtp to
devture/exim-relay. This change should be backward-compatible.
Note that the nginx container remains privileged. We could switch to
nginxinc/nginx-unprivileged, but it's probably not worth the effort, as we are
considering to get rid of the nginx container altogether.
Close #323.
2021-09-23 10:04:19 +00:00
|
|
|
user: "1000:1000"
|
2017-07-24 09:32:50 +00:00
|
|
|
volumes:
|
2021-02-16 11:12:18 +00:00
|
|
|
- ../apps/redis/redis.conf:/openedx/redis/config/redis.conf:ro
|
2020-09-17 10:53:14 +00:00
|
|
|
- ../../data/redis:/openedx/redis/data
|
|
|
|
command: redis-server /openedx/redis/config/redis.conf
|
2018-10-30 08:33:11 +00:00
|
|
|
restart: unless-stopped
|
feat: run all services as unprivileged containers
With this change, containers are no longer run as "root" but as unprivileged
users. This is necessary in some environments, notably some Kubernetes
clusters.
To make this possible, we need to manually fix bind-mounted volumes in
docker-compose. This is pretty much equivalent to the behaviour in Kubernetes,
where permissions are fixed at runtime if the volume owner is incorrect. Thus,
we have a consistent behaviour between docker-compose and Kubernetes.
We achieve this by bind-mounting some repos inside "*-permissions" services.
These services run as root user on docker-compose and will fix the required
permissions, as per build/permissions/setowner.sh These services simply do not
run on Kubernetes, where we don't rely on bind-mounted volumes. There, we make
use of Kubernete's built-in volume ownership feature.
With this change, we get rid of the "openedx-dev" Docker image, in the sense
that it no longer has its own Dockerfile. Instead, the dev image is now simply
a different target in the multi-layer openedx Docker image. This makes it much
faster to build the openedx-dev image.
Because we declare the APP_USER_ID in the dev/docker-compose.yml file, we need
to pass the user ID from the host there. The only way to achieve that is with a
tutor config variable. The downside of this approach is that the
dev/docker-compose.yml file is no longer portable from one machine to the next.
We consider that this is not such a big issue, as it affects the development
environment only.
We take this opportunity to replace the base image of the "forum" image. There
is now no need to re-install ruby inside the image. The total image size is
only decreased by 10%, but re-building the image is faster.
In order to run the smtp service as non-root, we switch from namshi/smtp to
devture/exim-relay. This change should be backward-compatible.
Note that the nginx container remains privileged. We could switch to
nginxinc/nginx-unprivileged, but it's probably not worth the effort, as we are
considering to get rid of the nginx container altogether.
Close #323.
2021-09-23 10:04:19 +00:00
|
|
|
depends_on:
|
2023-03-26 01:17:07 +00:00
|
|
|
- permissions
|
2023-04-27 18:25:20 +00:00
|
|
|
{%- endif %}
|
2017-07-24 09:32:50 +00:00
|
|
|
|
2023-04-27 18:25:20 +00:00
|
|
|
{% if RUN_SMTP -%}
|
2017-07-24 09:32:50 +00:00
|
|
|
smtp:
|
2020-07-21 07:13:00 +00:00
|
|
|
image: {{ DOCKER_IMAGE_SMTP }}
|
2018-02-08 06:40:18 +00:00
|
|
|
restart: unless-stopped
|
feat: run all services as unprivileged containers
With this change, containers are no longer run as "root" but as unprivileged
users. This is necessary in some environments, notably some Kubernetes
clusters.
To make this possible, we need to manually fix bind-mounted volumes in
docker-compose. This is pretty much equivalent to the behaviour in Kubernetes,
where permissions are fixed at runtime if the volume owner is incorrect. Thus,
we have a consistent behaviour between docker-compose and Kubernetes.
We achieve this by bind-mounting some repos inside "*-permissions" services.
These services run as root user on docker-compose and will fix the required
permissions, as per build/permissions/setowner.sh These services simply do not
run on Kubernetes, where we don't rely on bind-mounted volumes. There, we make
use of Kubernete's built-in volume ownership feature.
With this change, we get rid of the "openedx-dev" Docker image, in the sense
that it no longer has its own Dockerfile. Instead, the dev image is now simply
a different target in the multi-layer openedx Docker image. This makes it much
faster to build the openedx-dev image.
Because we declare the APP_USER_ID in the dev/docker-compose.yml file, we need
to pass the user ID from the host there. The only way to achieve that is with a
tutor config variable. The downside of this approach is that the
dev/docker-compose.yml file is no longer portable from one machine to the next.
We consider that this is not such a big issue, as it affects the development
environment only.
We take this opportunity to replace the base image of the "forum" image. There
is now no need to re-install ruby inside the image. The total image size is
only decreased by 10%, but re-building the image is faster.
In order to run the smtp service as non-root, we switch from namshi/smtp to
devture/exim-relay. This change should be backward-compatible.
Note that the nginx container remains privileged. We could switch to
nginxinc/nginx-unprivileged, but it's probably not worth the effort, as we are
considering to get rid of the nginx container altogether.
Close #323.
2021-09-23 10:04:19 +00:00
|
|
|
user: "100:101"
|
|
|
|
environment:
|
|
|
|
HOSTNAME: "{{ LMS_HOST }}"
|
2023-04-27 18:25:20 +00:00
|
|
|
{%- endif %}
|
2017-07-24 09:32:50 +00:00
|
|
|
|
|
|
|
############# LMS and CMS
|
|
|
|
|
2017-07-03 10:39:19 +00:00
|
|
|
lms:
|
2020-07-21 07:13:00 +00:00
|
|
|
image: {{ DOCKER_IMAGE_OPENEDX }}
|
2018-04-09 17:16:58 +00:00
|
|
|
environment:
|
|
|
|
SERVICE_VARIANT: lms
|
2022-04-12 14:07:48 +00:00
|
|
|
DJANGO_SETTINGS_MODULE: lms.envs.tutor.production
|
2020-09-17 10:53:14 +00:00
|
|
|
UWSGI_WORKERS: {{ OPENEDX_LMS_UWSGI_WORKERS }}
|
2018-02-08 06:40:18 +00:00
|
|
|
restart: unless-stopped
|
2017-07-03 10:39:19 +00:00
|
|
|
volumes:
|
2021-11-16 10:42:40 +00:00
|
|
|
- ../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
|
2023-02-25 03:01:35 +00:00
|
|
|
- ../apps/openedx/uwsgi.ini:/openedx/edx-platform/uwsgi.ini:ro
|
2018-12-03 18:59:09 +00:00
|
|
|
- ../../data/lms:/openedx/data
|
2019-07-07 00:52:47 +00:00
|
|
|
- ../../data/openedx-media:/openedx/media
|
2023-04-27 18:25:20 +00:00
|
|
|
{%- for mount in iter_mounts(MOUNTS, "lms") %}
|
|
|
|
- {{ mount }}
|
|
|
|
{%- endfor %}
|
2017-07-03 10:39:19 +00:00
|
|
|
depends_on:
|
2023-03-26 01:17:07 +00:00
|
|
|
- permissions
|
2020-09-17 10:53:14 +00:00
|
|
|
{% if RUN_MYSQL %}- mysql{% endif %}
|
|
|
|
{% if RUN_ELASTICSEARCH %}- elasticsearch{% endif %}
|
|
|
|
{% if RUN_MONGODB %}- mongodb{% endif %}
|
|
|
|
{% if RUN_REDIS %}- redis{% endif %}
|
|
|
|
{% if RUN_SMTP %}- smtp{% endif %}
|
2019-09-03 07:35:55 +00:00
|
|
|
{{ patch("local-docker-compose-lms-dependencies")|indent(6) }}
|
2017-07-03 10:39:19 +00:00
|
|
|
|
2017-07-24 09:32:50 +00:00
|
|
|
cms:
|
2020-07-21 07:13:00 +00:00
|
|
|
image: {{ DOCKER_IMAGE_OPENEDX }}
|
2018-04-09 17:16:58 +00:00
|
|
|
environment:
|
|
|
|
SERVICE_VARIANT: cms
|
2022-04-12 14:07:48 +00:00
|
|
|
DJANGO_SETTINGS_MODULE: cms.envs.tutor.production
|
2020-09-17 10:53:14 +00:00
|
|
|
UWSGI_WORKERS: {{ OPENEDX_CMS_UWSGI_WORKERS }}
|
2018-02-08 06:40:18 +00:00
|
|
|
restart: unless-stopped
|
2017-07-24 09:32:50 +00:00
|
|
|
volumes:
|
2021-11-16 10:42:40 +00:00
|
|
|
- ../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
|
2023-02-25 03:01:35 +00:00
|
|
|
- ../apps/openedx/uwsgi.ini:/openedx/edx-platform/uwsgi.ini:ro
|
2018-12-03 18:59:09 +00:00
|
|
|
- ../../data/cms:/openedx/data
|
2019-07-07 00:52:47 +00:00
|
|
|
- ../../data/openedx-media:/openedx/media
|
2023-04-27 18:25:20 +00:00
|
|
|
{%- for mount in iter_mounts(MOUNTS, "cms") %}
|
|
|
|
- {{ mount }}
|
|
|
|
{%- endfor %}
|
2017-07-24 09:32:50 +00:00
|
|
|
depends_on:
|
2023-03-26 01:17:07 +00:00
|
|
|
- permissions
|
|
|
|
- lms
|
2020-09-17 10:53:14 +00:00
|
|
|
{% if RUN_MYSQL %}- mysql{% endif %}
|
|
|
|
{% if RUN_ELASTICSEARCH %}- elasticsearch{% endif %}
|
|
|
|
{% if RUN_MONGODB %}- mongodb{% endif %}
|
|
|
|
{% if RUN_REDIS %}- redis{% endif %}
|
|
|
|
{% if RUN_SMTP %}- smtp{% endif %}
|
2019-09-03 07:35:55 +00:00
|
|
|
{{ patch("local-docker-compose-cms-dependencies")|indent(6) }}
|
2017-07-24 09:32:50 +00:00
|
|
|
|
|
|
|
############# LMS and CMS workers
|
|
|
|
|
2020-03-10 09:05:53 +00:00
|
|
|
lms-worker:
|
2020-07-21 07:13:00 +00:00
|
|
|
image: {{ DOCKER_IMAGE_OPENEDX }}
|
2018-04-09 17:16:58 +00:00
|
|
|
environment:
|
|
|
|
SERVICE_VARIANT: lms
|
2022-04-12 14:07:48 +00:00
|
|
|
DJANGO_SETTINGS_MODULE: lms.envs.tutor.production
|
2022-04-11 15:26:17 +00:00
|
|
|
command: celery --app=lms.celery worker --loglevel=info --hostname=edx.lms.core.default.%%h --max-tasks-per-child=100 --exclude-queues=edx.cms.core.default
|
2018-02-08 06:40:18 +00:00
|
|
|
restart: unless-stopped
|
2017-07-24 09:32:50 +00:00
|
|
|
volumes:
|
2021-11-16 10:42:40 +00:00
|
|
|
- ../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
|
2018-12-03 18:59:09 +00:00
|
|
|
- ../../data/lms:/openedx/data
|
2019-07-07 00:52:47 +00:00
|
|
|
- ../../data/openedx-media:/openedx/media
|
2023-04-27 18:25:20 +00:00
|
|
|
{%- for mount in iter_mounts(MOUNTS, "lms-worker") %}
|
|
|
|
- {{ mount }}
|
|
|
|
{%- endfor %}
|
2017-07-24 09:32:50 +00:00
|
|
|
depends_on:
|
2019-05-29 06:42:13 +00:00
|
|
|
- lms
|
2017-12-26 00:16:35 +00:00
|
|
|
|
2020-03-10 09:05:53 +00:00
|
|
|
cms-worker:
|
2020-07-21 07:13:00 +00:00
|
|
|
image: {{ DOCKER_IMAGE_OPENEDX }}
|
2018-04-09 17:16:58 +00:00
|
|
|
environment:
|
|
|
|
SERVICE_VARIANT: cms
|
2022-04-12 14:07:48 +00:00
|
|
|
DJANGO_SETTINGS_MODULE: cms.envs.tutor.production
|
2022-04-11 15:26:17 +00:00
|
|
|
command: celery --app=cms.celery worker --loglevel=info --hostname=edx.cms.core.default.%%h --max-tasks-per-child 100 --exclude-queues=edx.lms.core.default
|
2018-02-08 06:40:18 +00:00
|
|
|
restart: unless-stopped
|
2017-12-26 00:16:35 +00:00
|
|
|
volumes:
|
2021-11-16 10:42:40 +00:00
|
|
|
- ../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
|
2018-12-03 18:59:09 +00:00
|
|
|
- ../../data/cms:/openedx/data
|
2019-07-07 00:52:47 +00:00
|
|
|
- ../../data/openedx-media:/openedx/media
|
2023-04-27 18:25:20 +00:00
|
|
|
{%- for mount in iter_mounts(MOUNTS, "cms-worker") %}
|
|
|
|
- {{ mount }}
|
|
|
|
{%- endfor %}
|
2017-12-26 00:16:35 +00:00
|
|
|
depends_on:
|
2019-05-29 06:42:13 +00:00
|
|
|
- cms
|
2018-12-03 18:59:09 +00:00
|
|
|
|
2020-07-30 21:59:01 +00:00
|
|
|
{{ patch("local-docker-compose-services")|indent(2) }}
|