-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yaml
205 lines (193 loc) · 4.25 KB
/
docker-compose.yaml
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
version: "3"
services:
ceph-mon:
container_name: ceph-mon
restart: always
image: ceph/daemon:v3.1.0-stable-3.1-mimic-centos-7
command: mon
environment:
MON_IP: 192.168.55.2
CEPH_PUBLIC_NETWORK: 192.168.55.0/24
LANG: en_US.utf8
TZ: UTC
volumes:
- ceph-conf-volume:/etc/ceph
- ceph-lib-volume:/var/lib/ceph/
networks:
ceph-net:
ipv4_address: "192.168.55.2"
ceph-mgr:
container_name: ceph-mgr
restart: always
image: ceph/daemon:v3.1.0-stable-3.1-mimic-centos-7
command: mgr
environment:
LANG: en_US.utf8
TZ: UTC
volumes:
- ceph-conf-volume:/etc/ceph
- ceph-lib-volume:/var/lib/ceph/
depends_on:
- ceph-mon
networks:
ceph-net:
ipv4_address: "192.168.55.3"
ports:
- 8443:8443
# - 8080:8080
ceph-osd1:
pid: host
privileged: true
container_name: ceph-osd1
image: ceph/daemon:v3.1.0-stable-3.1-mimic-centos-7
command: osd_directory
restart: always
environment:
LANG: en_US.utf8
TZ: UTC
volumes:
- ceph-conf-volume:/etc/ceph
- ceph-lib-volume:/var/lib/ceph/
- ceph-osd1-volume:/var/lib/ceph/osd
depends_on:
- ceph-mon
networks:
ceph-net:
ipv4_address: "192.168.55.4"
ceph-osd2:
pid: host
privileged: true
container_name: ceph-osd2
image: ceph/daemon:v3.1.0-stable-3.1-mimic-centos-7
command: osd_directory
restart: always
environment:
LANG: en_US.utf8
TZ: UTC
volumes:
- ceph-conf-volume:/etc/ceph
- ceph-lib-volume:/var/lib/ceph/
- ceph-osd2-volume:/var/lib/ceph/osd
depends_on:
- ceph-mon
networks:
ceph-net:
ipv4_address: "192.168.55.5"
ceph-osd3:
pid: host
privileged: true
container_name: ceph-osd3
image: ceph/daemon:v3.1.0-stable-3.1-mimic-centos-7
command: osd_directory
restart: always
environment:
LANG: en_US.utf8
TZ: UTC
volumes:
- ceph-conf-volume:/etc/ceph
- ceph-lib-volume:/var/lib/ceph/
- ceph-osd3-volume:/var/lib/ceph/osd
depends_on:
- ceph-mon
networks:
ceph-net:
ipv4_address: "192.168.55.6"
ceph-rgw:
container_name: ceph-rgw
image: ceph/daemon:v3.1.0-stable-3.1-mimic-centos-7
command: rgw
restart: always
environment:
LANG: en_US.utf8
TZ: UTC
volumes:
- ceph-conf-volume:/etc/ceph
- ceph-lib-volume:/var/lib/ceph/
depends_on:
- ceph-osd1
- ceph-osd2
- ceph-osd3
networks:
ceph-net:
ipv4_address: "192.168.55.7"
ports:
- 7480:7480
ceph-mds:
image: ceph/daemon:v3.1.0-stable-3.1-mimic-centos-7
command: mds
#hostname: ceph-mds
container_name: ceph-mds
restart: always
environment:
CEPHFS_CREATE: 1
LANG: en_US.utf8
TZ: UTC
volumes:
- ceph-conf-volume:/etc/ceph
- ceph-lib-volume:/var/lib/ceph/
depends_on:
- ceph-osd1
- ceph-osd2
- ceph-osd3
networks:
ceph-net:
ipv4_address: "192.168.55.8"
ceph-rbd:
container_name: ceph-rbd
image: ceph/daemon:v3.1.0-stable-3.1-mimic-centos-7
command: rbd_mirror
restart: always
environment:
LANG: en_US.utf8
TZ: UTC
volumes:
- ceph-conf-volume:/etc/ceph
- ceph-lib-volume:/var/lib/ceph/
depends_on:
- ceph-osd1
- ceph-osd2
- ceph-osd3
networks:
ceph-net:
ipv4_address: "192.168.55.9"
volumes:
ceph-conf-volume:
driver: local
driver_opts:
type: none
o: bind
device: ${PWD}/ceph_conf/
ceph-lib-volume:
driver: local
driver_opts:
type: none
o: bind
device: ${PWD}/ceph_data/
ceph-osd1-volume:
driver: local
driver_opts:
type: none
o: bind
device: ${PWD}/osds/osd1/
ceph-osd2-volume:
driver: local
driver_opts:
type: none
o: bind
device: ${PWD}/osds/osd2/
ceph-osd3-volume:
driver: local
driver_opts:
type: none
o: bind
device: ${PWD}/osds/osd3/
networks:
ceph-net:
ipam:
driver: default
config:
- subnet: 192.168.55.0/24
#networks:
# default:
# external:
# name: "docker_bridge_name"