#provide the OSD_ID via a environment variable: #OSD_ID=1337 version: "3.0" services: ceph_osd: container_name: ceph_osd_${OSD_ID} image: docker.io/ceph/daemon:latest-nautilus #copy hostname of the host to correctly calculate CRUSH map positions hostname: ${HOSTNAME} environment: - OSD_ID=${OSD_ID} volumes: - /ceph/osd_${OSD_ID}/var/lib/ceph/:/var/lib/ceph/ - /ceph/osd_${OSD_ID}/etc/ceph/:/etc/ceph/ - /dev/:/dev/ command: osd_ceph_volume_activate privileged: true networks: - ceph networks: ceph: external: true