forked from openedx-unsupported/devstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-xqueue.yml
20 lines (18 loc) · 965 Bytes
/
docker-compose-xqueue.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: "2.1"
services:
xqueue:
container_name: edx.devstack.xqueue
image: edxops/xqueue:${OPENEDX_RELEASE:-latest}
command: bash -c 'source /edx/app/xqueue/xqueue_env && while true; do python /edx/app/xqueue/xqueue/manage.py runserver 0.0.0.0:18040 ; sleep 2; done'
volumes:
- ${DEVSTACK_WORKSPACE}/xqueue:/edx/app/xqueue/xqueue:cached
# depends_on: even though we need mysql, we can't refer to it because it's started in the other compose file
ports:
- 18040:18040
xqueue_consumer:
container_name: edx.devstack.xqueue_consumer
image: edxops/xqueue:${OPENEDX_RELEASE:-latest}
command: bash -c 'source /edx/app/xqueue/xqueue_env && while true; do python /edx/app/xqueue/xqueue/manage.py run_consumer ; sleep 2; done'
volumes:
- ${DEVSTACK_WORKSPACE}/xqueue:/edx/app/xqueue/xqueue:cached
# depends_on: even though we need mysql, we can't refer to it because it's started in the other compose file