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.

26 lines
784 B
YAML

#mons need a static ip address
#we reserve 10.13.37.0/24 for this
#manually pick a free ip address and place it in a .env file:
#MON_IP=10.13.37.312
version: "3.0"
services:
ceph_mon:
container_name: ceph_mon
image: docker.io/ceph/daemon:latest-nautilus
#copy hostname of the host to avoid confusion in e.g. `ceph status`
hostname: ${HOSTNAME}
environment:
- MON_IP=${MON_IP}
- CEPH_PUBLIC_NETWORK=10.13.37.0/23
- CEPH_CLUSTER_NETWORK=10.13.37.0/23
volumes:
- /ceph/mon/var/lib/ceph/:/var/lib/ceph/
- /ceph/mon/etc/ceph/:/etc/ceph/
command: mon
networks:
ceph:
ipv4_address: ${MON_IP}
networks:
ceph:
external: true