forked from Seagate/cortx-rgw
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (43 loc) · 944 Bytes
/
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
version: "2.4"
services:
cephadm-host-base:
build:
context: .
environment:
- CEPH_BRANCH=master
image: cephadm-box
# probably not needed with rootless Docker and cgroups v2
privileged: true
# cap_add:
# - SYS_ADMIN
# - NET_ADMIN
# - SYS_TIME
# - MKNOD
stop_signal: RTMIN+3
volumes:
- ../../../:/ceph
- ..:/cephadm
- ./daemon.json:/etc/docker/daemon.json
# dangerous, maybe just map the loopback
# https://stackoverflow.com/questions/36880565/why-dont-my-udev-rules-work-inside-of-a-running-docker-container
- /dev:/dev
networks:
- public
mem_limit: "20g"
scale: -1
seed:
extends:
service: cephadm-host-base
ports:
- "3000:3000"
- "8443:8443"
- "9095:9095"
scale: 1
hosts:
extends:
service: cephadm-host-base
scale: 3
volumes:
var-lib-docker:
networks:
public: