forked from openedx-unsupported/devstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-watchers.yml
41 lines (39 loc) · 1.65 KB
/
docker-compose-watchers.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
services:
lms_watcher:
command: bash -c 'cd /edx/app/edxapp/edx-platform && source ../edxapp_env && while true; do npm run watch --w=$$ASSET_WATCHER_TIMEOUT; sleep 2; done'
container_name: "edx.${COMPOSE_PROJECT_NAME:-devstack}.lms_watcher"
environment:
FRONTEND_TEST_SERVER_HOSTNAME: edx.devstack.lms_watcher
ASSET_WATCHER_TIMEOUT: 12
image: openedx/lms-dev:${OPENEDX_RELEASE:-latest}
volumes:
- ${DEVSTACK_WORKSPACE}/edx-platform:/edx/app/edxapp/edx-platform
- edxapp_lms_assets:/edx/var/edxapp/staticfiles/
- edxapp_node_modules:/edx/app/edxapp/edx-platform/node_modules
- ${DEVSTACK_WORKSPACE}/src:/edx/src
- ${DEVSTACK_WORKSPACE}/edx-themes:/edx/app/edx-themes
networks:
default:
aliases:
- edx.devstack.lms_watcher
cms_watcher:
command: bash -c 'cd /edx/app/edxapp/edx-platform && source ../edxapp_env && while true; do npm run watch --w=$$ASSET_WATCHER_TIMEOUT; sleep 2; done'
container_name: "edx.${COMPOSE_PROJECT_NAME:-devstack}.cms_watcher"
environment:
FRONTEND_TEST_SERVER_HOSTNAME: edx.devstack.cms_watcher
ASSET_WATCHER_TIMEOUT: 12
image: openedx/lms-dev:${OPENEDX_RELEASE:-latest}
volumes:
- edxapp_cms_assets:/edx/var/edxapp/staticfiles/
- ${DEVSTACK_WORKSPACE}/edx-platform:/edx/app/edxapp/edx-platform
- edxapp_node_modules:/edx/app/edxapp/edx-platform/node_modules
- ${DEVSTACK_WORKSPACE}/src:/edx/src
- ${DEVSTACK_WORKSPACE}/edx-themes:/edx/app/edx-themes
networks:
default:
aliases:
- edx.devstack.cms_watcher
volumes:
edxapp_lms_assets:
edxapp_cms_assets:
edxapp_node_modules: