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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

23 lines
666 B
YAML

#provide the OSD_ID via a environment variable:
#OSD_ID=1337
version: "3.0"
services:
ceph_osd_%OSD_ID%:
container_name: ceph_osd_%OSD_ID%
image: quay.io/ceph/daemon:latest-octopus
#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