You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
664 B
YAML
23 lines
664 B
YAML
#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 |