This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
forked from openfun/openedx-docker
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
115 lines (106 loc) · 2.95 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
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
version: "3.4"
services:
mysql:
image: mysql:5.6
ports:
- "3316:3306"
env_file: env.d/development
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
mongodb:
image: mongo:3.2
# We use WiredTiger in all environments. In development environments we use small files
# to conserve disk space, and disable the journal for a minor performance gain.
# See https://docs.mongodb.com/v3.0/reference/program/mongod/#options for complete details.
command: mongod --smallfiles --nojournal --storageEngine wiredTiger
memcached:
image: memcached:1.4
mailcatcher:
image: sj26/mailcatcher:latest
ports:
- "1080:1080"
lms:
build:
context: .
target: production
image: edxapp:latest
env_file: env.d/development
environment:
SERVICE_VARIANT: lms
DJANGO_SETTINGS_MODULE: lms.envs.fun.docker_run
volumes:
- ./data/static/production:/edx/app/edxapp/staticfiles
- ./data/media:/edx/var/edxapp/media
- ./data/store:/edx/app/edxapp/data
- ./config:/config
depends_on:
- mailcatcher
- mysql
- mongodb
- memcached
user: ${UID}:${GID}
lms-dev:
build:
context: .
target: development
args:
UID: ${UID}
GID: ${GID}
image: edxapp:dev
env_file: env.d/development
ports:
- "8072:8000"
volumes:
- ./src/edx-platform:/edx/app/edxapp/edx-platform
- ./data/static/development:/edx/app/edxapp/staticfiles
- ./data/media:/edx/var/edxapp/media
- ./data/store:/edx/app/edxapp/data
- ./config:/config
entrypoint: /usr/local/bin/entrypoint.sh
command: >
python manage.py lms runserver 0.0.0.0:8000 --settings=fun.docker_run_development
depends_on:
- mailcatcher
- mysql
- mongodb
- memcached
cms:
image: edxapp:latest
env_file: env.d/development
environment:
SERVICE_VARIANT: cms
DJANGO_SETTINGS_MODULE: cms.envs.fun.docker_run
volumes:
- ./data/static/production:/edx/app/edxapp/staticfiles
- ./data/media:/edx/var/edxapp/media
- ./data/store:/edx/app/edxapp/data
- ./config:/config
depends_on:
- lms
user: ${UID}:${GID}
cms-dev:
image: edxapp:dev
env_file: env.d/development
ports:
- "8082:8000"
volumes:
- ./src/edx-platform:/edx/app/edxapp/edx-platform
- ./data/static/development:/edx/app/edxapp/staticfiles
- ./data/media:/edx/var/edxapp/media
- ./data/store:/edx/app/edxapp/data
- ./config:/config
entrypoint: /usr/local/bin/entrypoint.sh
command: >
python manage.py cms runserver 0.0.0.0:8000 --settings=fun.docker_run_development
depends_on:
- lms-dev
nginx:
image: nginx:1.13
ports:
- "8073:8071"
- "8083:8081"
volumes:
- ./docker/files/etc/nginx/conf.d:/etc/nginx/conf.d:ro
- ./data:/data:ro
depends_on:
- lms
- cms