version: "3.0" services: ceph_mds: container_name: ceph_mds image: docker.io/ceph/daemon:latest-nautilus #copy hostname of the host to avoid confusion in e.g. `ceph status` hostname: ${HOSTNAME} environment: #in case cephfs doesn't exist, yet (normally only during bootstrap) - CEPHFS_CREATE=1 volumes: - /ceph/mds/var/lib/ceph/:/var/lib/ceph/ - /ceph/mds/etc/ceph/:/etc/ceph/ command: mds networks: - ceph networks: ceph: external: true