Press "Enter" to skip to content

swarm 使用ceph存储卷挂载

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

需要注意的是,这里的驱动要指定清楚。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注