forked from rhcs-dashboard/ceph-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
154 lines (142 loc) · 5.03 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
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
version: '2.2'
services:
ceph-base:
image: ${CEPH_IMAGE:-rhcsdashboard/ceph-rpm:master}
volumes:
- ./docker/ceph:/docker:z
- ${CEPH_REPO_DIR}:/ceph
- ${CEPH_CUSTOM_BUILD_DIR:-empty_volume}:/ceph/build.custom
- ${HOST_CCACHE_DIR:-~/.ccache}:/root/.ccache
environment:
- ALERTMANAGER_HOST_PORT=${ALERTMANAGER_HOST_PORT}
- CEPH_DEBUG=${CEPH_DEBUG:-0}
- CEPH_PORT
- CEPH_REPO_DIR
- CHECK_MYPY=${CHECK_MYPY:-0}
- CYPRESS_CACHE_FOLDER=/ceph/build.cypress
- DASHBOARD_DEV_SERVER=${DASHBOARD_DEV_SERVER:-1}
- DASHBOARD_SSL=${DASHBOARD_SSL:-0}
- FS
- GRAFANA_HOST_PORT=${GRAFANA_HOST_PORT}
- MDS
- MGR
- MON
- MON_MAX_PG_PER_OSD
- NFS
- NG_CLI_ANALYTICS=false
- NODE_EXPORTER_HOST_PORT=${NODE_EXPORTER_HOST_PORT}
- OSD
- PROMETHEUS_HOST_PORT=${PROMETHEUS_HOST_PORT}
- PYTHONDONTWRITEBYTECODE=1
- REMOTE_DASHBOARD_URL
- RGW
- RGW_MULTISITE=${RGW_MULTISITE:-0}
cap_add:
- ALL
entrypoint: /docker/entrypoint.sh
command: /docker/start.sh
cpus: ${CEPH_CPUS:-0}
scale: -1
ceph:
extends:
service: ceph-base
container_name: ceph
hostname: ceph
ports: ['${CEPH_PROXY_HOST_PORT:-4200}:4200','${CEPH_HOST_PORT:-11000}:11000']
scale: 1
ceph-cluster2:
extends:
service: ceph-base
container_name: ceph-cluster2
hostname: ceph-cluster2
ceph-host2:
extends:
service: ceph-base
container_name: ceph-host2
hostname: ceph-host2
command: /docker/start-ceph-additional-host.sh
ceph2:
extends:
service: ceph-base
image: ${CEPH2_IMAGE:-rhcsdashboard/ceph-rpm:master}
container_name: ceph2
hostname: ceph2
ports: ['${CEPH2_PROXY_HOST_PORT:-4202}:4200','${CEPH2_HOST_PORT:-11002}:11000']
volumes:
- ${CEPH2_REPO_DIR}:/ceph
- ${CEPH2_CUSTOM_BUILD_DIR:-empty_volume}:/ceph/build.custom
grafana:
image: ${GRAFANA_IMAGE:-ceph/ceph-grafana}
container_name: grafana
hostname: grafana
ports: ['${GRAFANA_HOST_PORT:-3000}:3000']
volumes:
- grafana_data:/var/lib/grafana
- ./docker/grafana/grafana.ini:/etc/grafana/grafana.ini:Z
- ./docker/grafana/provisioning:/etc/grafana/provisioning:Z
- ${CEPH_REPO_DIR}/monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards/ceph:Z
environment:
- GF_SECURITY_ALLOW_EMBEDDING=true
prometheus:
image: ${PROMETHEUS_IMAGE:-prom/prometheus:v2.18.1}
container_name: prometheus
hostname: prometheus
ports: ['${PROMETHEUS_HOST_PORT:-9090}:9090']
volumes:
- ./docker/prometheus:/etc/prometheus:Z
- ${CEPH_REPO_DIR}/monitoring/prometheus/alerts:/etc/prometheus/alerts:Z
node-exporter:
image: ${NODE_EXPORTER_IMAGE:-prom/node-exporter:v0.18.1}
container_name: node-exporter
hostname: node-exporter
ports: ['${NODE_EXPORTER_HOST_PORT:-9100}:9100']
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--no-collector.timex'
alertmanager:
image: ${ALERTMANAGER_IMAGE:-prom/alertmanager:v0.20.0}
container_name: alertmanager
hostname: alertmanager
ports: ['${ALERTMANAGER_HOST_PORT:-9093}:9093']
volumes:
- ./docker/alertmanager:/etc/alertmanager:Z
command:
- '--config.file=/etc/alertmanager/config.yml'
keycloak:
image: ${KEYCLOAK_IMAGE:-jboss/keycloak:11.0.3}
container_name: keycloak
hostname: keycloak
ports: ['${KEYCLOAK_HOST_HTTP_PORT:-8080}:8080', '${KEYCLOAK_HOST_HTTPS_PORT:-8443}:8443']
volumes:
- ./docker/keycloak:/docker:Z
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=keycloak
- KEYCLOAK_IMPORT=/docker/saml-demo-realm.json
- BIND=127.0.0.1
scale: -1
haproxy:
image: ${HAPROXY_IMAGE:-haproxy:latest}
container_name: haproxy
hostname: haproxy
ports: ['${HAPROXY_HOST_HTTP_PORT:-80}:80', '${HAPROXY_HOST_HTTPS_PORT:-443}:443']
volumes:
- ./docker/haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
- ./docker/haproxy/dashboard.pem:/etc/ssl/certs/dashboard.pem
- ./docker/haproxy/cors.lua:/etc/haproxy/cors.lua
scale: -1
volumes:
empty_volume:
grafana_data:
networks:
default:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 172.20.0.0/24
- subnet: 2600:3c02:e000:0058::/64