-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
132 lines (113 loc) · 2.97 KB
/
docker-compose.test.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: "3.7"
services:
memcached:
image: docker.io/memcached:1.4.38
restart: unless-stopped
mongodb:
image: docker.io/mongo:3.2.16
command: mongod --smallfiles --nojournal --storageEngine wiredTiger
restart: unless-stopped
volumes:
- /var/edx/data/mongodb:/data/db
mysql:
image: docker.io/mysql:5.6.36
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
restart: unless-stopped
ports:
- "3306:3306"
volumes:
- /var/edx/data/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "a4sQrRUq"
MYSQL_DATABASE: openedx
MYSQL_USER: openedx
MYSQL_PASSWORD: "h61EqXte"
elasticsearch:
image: docker.io/elasticsearch:1.5.2
command: ["elasticsearch", "--cluster.name=openedx", "--bootstrap.mlockall=true"]
ulimits:
memlock:
soft: -1
hard: -1
restart: unless-stopped
volumes:
- /var/edx/data/elasticsearch:/usr/share/elasticsearch/data
rabbitmq:
image: docker.io/rabbitmq:3.6.10-management-alpine
restart: unless-stopped
smtp:
image: mailhog/mailhog:latest
restart: unless-stopped
ports:
- "8025:8025"
ci-lms:
image: edx-patched-dev:latest
environment:
SETTINGS: production
DEBUG: "False"
# command: ./manage.py lms runserver 0.0.0.0:8000
volumes:
- ./config/:/openedx/config/
- ./lms:/openedx/edx-platform/lms
- ./common:/openedx/edx-platform/common
ports:
- "8000:8000"
stdin_open: true
tty: true
depends_on:
- mysql
- elasticsearch
- forum
- memcached
- mongodb
- rabbitmq
- smtp
- lms-worker
- nginx
ci-cms:
image: edx-patched-dev:latest
environment:
SERVICE_VARIANT: cms
GUNICORN_WORKERS: 2
SETTINGS: production
DEBUG: "False"
restart: unless-stopped
# command: ./manage.py cms runserver 0.0.0.0:8000
ports:
- "8001:8000"
stdin_open: true
tty: true
volumes:
- ./config/:/openedx/config/
- ./cms:/openedx/edx-platform/cms
- ./common:/openedx/edx-platform/common
depends_on:
- mysql
- elasticsearch
- memcached
- mongodb
- rabbitmq
- smtp
lms-worker:
image: edx-patched-dev:latest
environment:
SERVICE_VARIANT: lms
SETTINGS: development
C_FORCE_ROOT: "1"
command: ./manage.py lms celery worker --loglevel=info --hostname=edx.lms.core.default.%%h --maxtasksperchild 100
restart: unless-stopped
volumes:
- ./config/:/openedx/config/
- /var/edx/data/lms:/openedx/data
- /var/edx/data/openedx-media:/openedx/media
depends_on:
- rabbitmq
nginx:
image: docker.io/nginx:1.13
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./conf/nginx:/etc/nginx/conf.d/:ro
- /var/edx/data/openedx:/var/www/openedx:ro
- /var/edx/data/openedx-media:/var/www/openedx-media:ro