redis:
image: redis:latest
command: redis-server --appendonly yes
volumes:
- $RESOURCES_FOLDER/redis:/data
elasticsearch:
image: elasticsearch:2.4
command: elasticsearch -Des.network.host=0.0.0.0
volumes:
- $RESOURCES_FOLDER/elasticsearch:/usr/share/elasticsearch/data
以上是docker-compose中的内容。假设我安装了redix和elasticsearch 2.4,我只需要读入volumes中指定的数据,我该怎么做?我使用的是Ubuntu 16.04。