-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose.yml
75 lines (69 loc) · 2.21 KB
/
docker-compose.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3'
services:
doubtfire-api:
container_name: web-doubtfire-api
image: lmsdoubtfire/doubtfire-api:6.0.x-dev
ports:
- "3000:3000"
volumes:
- ../data/tmp:/doubtfire/tmp
- ../data/student-work:/student-work
depends_on:
- dev-db
- doubtfire-mq
env_file: development.env
overseer-receive:
image: lmsdoubtfire/doubtfire-api:6.0.x-dev
env_file: development.env
volumes:
- ../data/tmp:/doubtfire/tmp
- ../data/student-work:/student-work
command: /bin/bash -c "bundle exec rake register_q_assessment_results_subscriber"
overseer-worker-1:
build: .
env_file: development.env
environment:
DOCKER_HOST: host.docker.internal
CONTAINER_NAME: overseer-container-1
HOST_XFS_VOLUME: /stage/ontrack-overseer-1
volumes:
# Host path for writing the output of execution - required.
# TODO: Test by mounting an actual XFS volume.
# /stage/ontrack-overseer-[1-4]
- ../data/overseer-instances/1:/home/overseer/work-dir
# Path for reading OnTrack files from - required.
# TODO: Map this directly to a constant path that can be written to,
# as the path will be a part of the messages
# received from OnTrack via RabbitMQ.
# TODO: Make the path rw by overseer in docker image.
- ../data/student-work:/student-work
command: /bin/bash -c "bundle exec ruby ./app.rb"
dev-db:
container_name: doubtfire-dev-db
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: db-root-password
MYSQL_DATABASE: doubtfire-dev
MYSQL_USER: dfire
MYSQL_PASSWORD: pwd
volumes:
- ../data/database:/var/lib/mysql
doubtfire-web:
container_name: doubtfire-web
image: lmsdoubtfire/doubtfire-web:6.0.x-dev
command: /bin/bash -c 'npm install; npm start'
ports:
- "4200:4200"
depends_on:
- doubtfire-api
doubtfire-mq:
container_name: df-prod-mq
image: rabbitmq:3.8-management
ports:
- 15672:15672
volumes:
- ../data/rabbitmq/data/:/var/lib/rabbitmq
- ../data/rabbitmq/log/:/var/log/rabbitmq
environment:
RABBITMQ_DEFAULT_USER: secure_credentials
RABBITMQ_DEFAULT_PASS: secure_credentials