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.
25 lines
751 B
YAML
25 lines
751 B
YAML
5 years ago
|
#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:
|
||
|
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
|