Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit da11570

Browse files
committed
Multiple Docker Compose updates
- Pulling custom Elasticsearch image from Docker Hub - Using data volumes instead of host directories for Elasticsearch and MySQL data. (This should help mitigate file system slowness on OS X.) ECOM-6560
1 parent 0376c86 commit da11570

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

docker-compose.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@ version: "2.1"
1313
services:
1414
# Third-party services
1515
elasticsearch:
16-
build:
17-
context: .
18-
dockerfile: ./docker/elasticsearch/Dockerfile
1916
container_name: edx.devstack.elasticsearch
17+
image: clintonb/elasticsearch
2018
# TODO: What to do about these forwarded ports? They'll conflict with ports forwarded by the Vagrant VM.
2119
# ports:
2220
# - "9200:9200"
2321
# - "9300:9300"
2422
volumes:
25-
- ./.dev/volumes/elasticsearch/data:/usr/share/elasticsearch/data
26-
- ./.dev/volumes/elasticsearch/logs:/usr/share/elasticsearch/logs
23+
- elasticsearch_data:/usr/share/elasticsearch/data
24+
- elasticsearch_data:/usr/share/elasticsearch/logs
2725

2826
memcached:
2927
container_name: edx.devstack.memcached
@@ -41,7 +39,7 @@ services:
4139
# ports:
4240
# - "3306:3306"
4341
volumes:
44-
- ./.dev/volumes/mysql:/var/lib/mysql
42+
- mysql_data:/var/lib/mysql
4543

4644
# edX services
4745
credentials:
@@ -106,3 +104,7 @@ services:
106104
- "18140:18140"
107105
volumes:
108106
- ../programs:/edx/app/programs/programs
107+
108+
volumes:
109+
elasticsearch_data:
110+
mysql_data:

docker/elasticsearch/Dockerfile

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)