forked from openedx/course-discovery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (57 loc) · 1.73 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
version: "2"
services:
db:
image: mysql:5.7
container_name: db
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_USER: "discov001"
MYSQL_PASSWORD: "password"
MYSQL_DATABASE: "discovery"
ports:
- "3306:3306"
volumes:
- ./.dev/volumes/db:/var/lib/mysql
es:
image: elasticsearch:7.17.17
container_name: es
volumes:
- ./.dev/volumes/es/data:/usr/share/elasticsearch/data
- ./.dev/volumes/es/logs:/usr/share/elasticsearch/logs
- ./.dev/volumes/es/plugins:/usr/share/elasticsearch/plugins
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- http.port=9200
ports:
- "9200:9200"
- "9300:9300"
memcached:
image: memcached:1.6.24
container_name: memcached
course-discovery:
# Uncomment this line to use the official course-discovery base image
image: edxops/discovery:latest
# Uncomment the next two lines to build from a local configuration repo
# build: ../configuration/docker/build/discovery/
container_name: course-discovery
volumes:
- .:/edx/app/discovery/discovery
- /edx/app/discovery/discovery/node_modules
- ./course_discovery/media:/edx/var/discovery/media
- ./course_discovery/assets:/edx/var/discovery/staticfiles
command: /edx/app/discovery/devstack.sh start
depends_on:
- "db"
- "es"
- "memcached"
environment:
TEST_ELASTICSEARCH_URL: "http://es:9200"
ENABLE_DJANGO_TOOLBAR: 1
ports:
- "18381:18381"
- "8381:8381"
- "48381:48381"