forked from Edraak/devstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
147 lines (137 loc) · 4.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
147 lines (137 loc) · 4.15 KB
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# This file contains all of the services for an edX installation. See https://docs.docker.com/compose/compose-file/
# for the appropriate syntax and definitions.
#
# Housekeeping Rules:
# - Group third-party and edX services separately
# - Alphabetize services in the groups
# - Alphabetize individual configuration options for each service
# - Every service's container name should be prefixed with "edx.devstack." to avoid conflicts with other containers
# that might be running for the same service.
version: "2.1"
services:
# Third-party services
elasticsearch:
container_name: edx.devstack.elasticsearch
image: edxops/elasticsearch:devstack
logging:
driver: splunk
options:
splunk-sourcetype: log4j
splunk-token: "DDCDDF14-1285-4597-97DD-0C6F46CF99CC"
splunk-url: http://localhost:8088
splunk-verify-connection: "false"
tag: "{{.Name}}"
# TODO: What to do about these forwarded ports? They'll conflict with ports forwarded by the Vagrant VM.
# ports:
# - "9200:9200"
# - "9300:9300"
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
- elasticsearch_data:/usr/share/elasticsearch/logs
memcached:
container_name: edx.devstack.memcached
image: memcached:1.4.24
logging: &logging
driver: splunk
options:
splunk-token: "DDCDDF14-1285-4597-97DD-0C6F46CF99CC"
splunk-url: http://localhost:8088
splunk-verify-connection: "false"
tag: "{{.Name}}"
# ports:
# - "11211:11211"
mongo:
# 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
container_name: edx.devstack.mongo
image: mongo:3.0.14
logging:
driver: splunk
options:
splunk-sourcetype: mongod
splunk-token: "DDCDDF14-1285-4597-97DD-0C6F46CF99CC"
splunk-url: http://localhost:8088
splunk-verify-connection: "false"
tag: "{{.Name}}"
# ports:
# - "27017:27017"
volumes:
- mongo_data:/data/db
mysql:
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
container_name: edx.devstack.mysql
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
image: mysql:5.6
logging:
driver: splunk
options:
splunk-sourcetype: mysql
splunk-token: "DDCDDF14-1285-4597-97DD-0C6F46CF99CC"
splunk-url: http://localhost:8088
splunk-verify-connection: "false"
tag: "{{.Name}}"
# ports:
# - "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
# edX services
credentials:
command: /edx/app/credentials/devstack.sh start
container_name: edx.devstack.credentials
depends_on:
- mysql
- memcached
- discovery
environment:
ENABLE_DJANGO_TOOLBAR: 1
image: edxops/credentials:devstack
logging: *logging
ports:
- "18150:18150"
discovery:
command: /edx/app/discovery/devstack.sh start
container_name: edx.devstack.discovery
depends_on:
- mysql
- elasticsearch
- memcached
environment:
TEST_ELASTICSEARCH_URL: "http://edx.devstack.elasticsearch:9200"
ENABLE_DJANGO_TOOLBAR: 1
image: edxops/discovery:devstack
logging: *logging
ports:
- "18381:18381"
ecommerce:
command: /edx/app/ecommerce/devstack.sh start
container_name: edx.devstack.ecommerce
depends_on:
- mysql
- memcached
- discovery
environment:
ENABLE_DJANGO_TOOLBAR: 1
image: edxops/ecommerce:devstack
logging: *logging
ports:
- "18130:18130"
edxapp:
command: /edx/app/edxapp/devstack.sh start
container_name: edx.devstack.edxapp
depends_on:
- mysql
- memcached
- mongo
image: edxops/edxapp:devstack
logging: *logging
ports:
- "18000:18000"
- "18010:18010"
volumes:
elasticsearch_data:
mongo_data:
mysql_data: