|
|
@ -3,16 +3,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
version: "3.0"
|
|
|
|
version: "3.0"
|
|
|
|
services:
|
|
|
|
services:
|
|
|
|
ceph_osd:
|
|
|
|
ceph_osd_%OSD_ID%:
|
|
|
|
container_name: ceph_osd_${OSD_ID}
|
|
|
|
container_name: ceph_osd_%OSD_ID%
|
|
|
|
image: docker.io/ceph/daemon:latest-nautilus
|
|
|
|
image: docker.io/ceph/daemon:latest-nautilus
|
|
|
|
#copy hostname of the host to correctly calculate CRUSH map positions
|
|
|
|
#copy hostname of the host to correctly calculate CRUSH map positions
|
|
|
|
hostname: ${HOSTNAME}
|
|
|
|
hostname: ${HOSTNAME}
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
- OSD_ID=${OSD_ID}
|
|
|
|
- OSD_ID=%OSD_ID%
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- /ceph/osd_${OSD_ID}/var/lib/ceph/:/var/lib/ceph/
|
|
|
|
- /ceph/osd_%OSD_ID%/var/lib/ceph/:/var/lib/ceph/
|
|
|
|
- /ceph/osd_${OSD_ID}/etc/ceph/:/etc/ceph/
|
|
|
|
- /ceph/osd_%OSD_ID%/etc/ceph/:/etc/ceph/
|
|
|
|
- /dev/:/dev/
|
|
|
|
- /dev/:/dev/
|
|
|
|
command: osd_ceph_volume_activate
|
|
|
|
command: osd_ceph_volume_activate
|
|
|
|
privileged: true
|
|
|
|
privileged: true
|
|
|
|