-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.example.yml
91 lines (85 loc) · 2.21 KB
/
docker-compose.example.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Use this Docker Compose file if you want to run A+ and MOOC-Grader without Git manager.
volumes:
data:
rubyricdb:
services:
plus:
image: apluslms/run-aplus-front
command: "python3 -m debugpy --listen 0.0.0.0:5677 manage.py runserver 0.0.0.0:8000"
environment:
APLUS_ENABLE_DJANGO_DEBUG_TOOLBAR: 'false'
USE_GITMANAGER: 'false'
volumes:
- data:/data
# Mount A+ development code
- ./a-plus/:/srv/aplus/:ro
ports:
- "8000:8000"
- "5677:5677"
depends_on:
- acos
- rubyric
- grader
grader:
image: apluslms/run-mooc-grader
command: "python3 -m debugpy --listen 0.0.0.0:5676 manage.py runserver 0.0.0.0:8080"
volumes:
- data:/data
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/aplus:/tmp/aplus
# Mount MOOC-Grader development code
# - ./mooc-grader/:/srv/grader/
# Set aplus-manual submodule as the default course
- ./aplus-manual/:/srv/courses/default:ro
# Or use some other course (you must remember to build it manually by running ./docker-compile.sh)
# - $HOME/y1/:/srv/courses/default:ro
ports:
- "8080:8080"
- "5676:5676"
jutut:
image: apluslms/run-mooc-jutut
command: "python3 -m debugpy --listen 0.0.0.0:5674 manage.py runserver 0.0.0.0:8082"
volumes:
- data:/data
# Mount MOOC-Jutut development code
# - ./mooc-jutut/:/srv/jutut/:ro
ports:
- "8082:8082"
- "5674:5674"
acos:
image: apluslms/run-acos-server
user: $USER_ID:$USER_GID
ports:
- "3000:3000"
radar:
image: apluslms/run-radar
ports:
- "8001:8001"
# Django debug
- "5678:5678"
# Celery debug
- "5679:5679"
# Flower (celery dashboard)
- "5555:5555"
depends_on:
- plus
- grader
volumes:
- data:/data
rubyric:
image: apluslms/run-rubyric
volumes:
- data:/data
ports:
- "8091:8091"
depends_on:
- rubyricdb
rubyricdb:
image: postgres:13-bullseye
restart: always
environment:
POSTGRES_USER: rubyric
POSTGRES_PASSWORD: rubyric
POSTGRES_DB: rubyric
volumes:
- rubyricdb:/var/lib/postgresql/data