forked from openedx-unsupported/devstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-xqueue.yml
28 lines (26 loc) · 1.16 KB
/
docker-compose-xqueue.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
version: "2.1"
services:
xqueue:
container_name: "edx.${COMPOSE_PROJECT_NAME:-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
networks:
default:
aliases:
- edx.devstack.xqueue
ports:
- 18040:18040
xqueue_consumer:
container_name: "edx.${COMPOSE_PROJECT_NAME:-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
networks:
default:
aliases:
- edx.devstack.xqueue_consumer
# depends_on: even though we need mysql, we can't refer to it because it's started in the other compose file