Commit 9c1f4a2a by Clinton Blackburn Committed by GitHub

Improved Docker Support (#247)

The addition of a proper local volume mapping for Elasticsearch and MySQL ensures developers don't lose data between runs of the containers.
parent 66c86483
......@@ -85,3 +85,4 @@ private.py
docs/_build/
course_discovery/static/bower_components/
node_modules/
docker/volumes/
......@@ -12,12 +12,14 @@ services:
MYSQL_DATABASE: "discovery"
ports:
- "3306:3306"
volumes:
- ./docker/volumes/db:/var/lib/mysql
es:
image: elasticsearch:1.5.2
container_name: es
volumes:
- /tmp/elasticsearch/data:/es-data
- ./docker/volumes/es:/es-data
ports:
- "9200:9200"
- "9300:9300"
......
This directory contains the data volumes for the Docker container. The contents of this directory are ignored by Git.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment