version: '3.6'
services:
elasticsearch:
image: elasticsearch:7.2
volumes:
- es-volume:/usr/share/elasticsearch/data
logging:
options:
max-size: "10m"
max-file: "10"
ports:
- "9200:9200"
- "9300:9300"
volumes:
es-volume:
name: es-volume-ceph-name
driver: rexray
需要注意的是,这里的驱动要指定清楚。