forked from flaviostutz/cepher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
114 lines (104 loc) · 3.21 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: '3.5'
services:
cepher:
build: .
image: flaviostutz/cepher:13.0
network_mode: host
environment:
- MONITOR_HOSTS=${HOST_IP}:16789,${HOST_IP}:26789,${HOST_IP}:16789
- DEFAULT_IMAGE_SIZE=100
- ENABLE_AUTO_CREATE_VOLUMES=true
- LOG_LEVEL=debug
# - USE_RBD_KERNEL_MODULE=true
- USE_RBD_KERNEL_MODULE=false
# - DEFAULT_IMAGE_FEATURES=layering,striping,exclusive-lock
- DEFAULT_IMAGE_FEATURES=layering,striping,exclusive-lock,object-map,fast-diff,journaling
- ETCD_URL=http://${HOST_IP}:12379
privileged: true
pid: host
volumes:
- /run/docker/plugins:/run/docker/plugins
- /mnt:/mnt
- /dev:/dev
- /sys:/sys
- /lib:/lib
etcd0:
image: quay.io/coreos/etcd:v3.2.25
network_mode: host
environment:
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:12379
- ETCD_ADVERTISE_CLIENT_URLS=http://${HOST_IP}:12379
mon1:
image: flaviostutz/ceph-monitor:13.2.0.2
network_mode: host
pid: host
environment:
- LOG_LEVEL=0
- CREATE_CLUSTER=true
- ETCD_URL=http://${HOST_IP}:12379
- PEER_MONITOR_HOSTS=${HOST_IP}:26789,${HOST_IP}:36789
- MONITOR_ADVERTISE_ADDRESS=${HOST_IP}:16789
- MONITOR_BIND_PORT=16789
mon2:
image: flaviostutz/ceph-monitor:13.2.0.2
network_mode: host
pid: host
environment:
- ETCD_URL=http://${HOST_IP}:12379
- PEER_MONITOR_HOSTS=${HOST_IP}:16789,${HOST_IP}:36789
- MONITOR_ADVERTISE_ADDRESS=${HOST_IP}:26789
- MONITOR_BIND_PORT=26789
mon3:
image: flaviostutz/ceph-monitor:13.2.0.2
network_mode: host
pid: host
environment:
- ETCD_URL=http://${HOST_IP}:12379
- PEER_MONITOR_HOSTS=${HOST_IP}:16789,${HOST_IP}:26789
- MONITOR_ADVERTISE_ADDRESS=${HOST_IP}:36789
- MONITOR_BIND_PORT=36789
mgr1:
image: flaviostutz/ceph-manager:13.2.0.2
pid: host
ports:
- 18443:8443 #dashboard https
- 18003:8003 #restful https
- 19283:9283 #prometheus
environment:
- MONITOR_HOSTS=${HOST_IP}:16789,${HOST_IP}:26789,${HOST_IP}:16789
- ETCD_URL=http://${HOST_IP}:12379
osd1:
image: flaviostutz/ceph-osd:13.2.0.2
network_mode: host
pid: host
environment:
- LOG_LEVEL=0
- MONITOR_HOSTS=${HOST_IP}:16789,${HOST_IP}:26789,${HOST_IP}:36789
- OSD_EXT4_SUPPORT=true
- OSD_JOURNAL_SIZE=512
- OSD_CRUSH_LOCATION=root=default host=host1
- ETCD_URL=http://${HOST_IP}:12379
# - OSD_PUBLIC_IP=${HOST_IP}
# - OSD_CLUSTER_IP=${HOST_IP}
osd2:
image: flaviostutz/ceph-osd:13.2.0.2
network_mode: host
pid: host
environment:
- LOG_LEVEL=0
- MONITOR_HOSTS=${HOST_IP}:16789,${HOST_IP}:26789,${HOST_IP}:36789
- OSD_EXT4_SUPPORT=true
- OSD_JOURNAL_SIZE=512
- OSD_CRUSH_LOCATION=root=default host=host2
- ETCD_URL=http://${HOST_IP}:12379
osd3:
image: flaviostutz/ceph-osd:13.2.0.2
network_mode: host
pid: host
environment:
- LOG_LEVEL=0
- MONITOR_HOSTS=${HOST_IP}:16789,${HOST_IP}:26789,${HOST_IP}:36789
- OSD_EXT4_SUPPORT=true
- OSD_JOURNAL_SIZE=512
- OSD_CRUSH_LOCATION=root=default host=host3
- ETCD_URL=http://${HOST_IP}:12379