-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.visualize.yaml
88 lines (84 loc) · 2.16 KB
/
docker-compose.visualize.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
---
services:
api-proxy:
depends_on:
- state-conductor
grafana:
image: grafana/grafana-oss:10.0.3
ports:
- target: 3000
published: 23000
environment:
GF_LOG_LEVEL: ${GRAFANA_LOG_LEVEL}
volumes:
# Grafanaの設定ファイル
- type: bind
source: ./assets/grafana/grafana.ini
target: /etc/grafana/grafana.ini
# データソースのprovisioning
- type: bind
source: ./assets/grafana/datasources
target: /etc/grafana/provisioning/datasources
# ダッシュボードのprovisioning
- type: bind
source: ./assets/grafana/dashboards
target: /etc/grafana/provisioning/dashboards
restart: always
logging:
options:
max-size: 50m
depends_on:
- prometheus
prometheus:
image: prom/prometheus:v2.46.0
ports:
- target: 9090
published: 9090
volumes:
# ./prometheus配下に存在する設定ファイルのマウント
- type: bind
source: ./assets/prometheus/
target: /etc/prometheus/
command:
# コンフィグファイルのパスの指定
- --config.file=/etc/prometheus/prometheus.yaml
- --log.level=${PROMETHEUS_LOG_LEVEL}
restart: always
logging:
options:
max-size: 50m
depends_on:
- cadvisor
state-conductor:
image: ${STATE_CONDUCTOR_IMAGE}:${STATE_CONDUCTOR_IMAGE_TAG}
environment:
STATE_CONDUCTOR_LOG_LEVEL: ${STATE_CONDUCTOR_LOG_LEVEL}
PROMETHEUS_URL: http://prometheus:9090
volumes:
# for development
- type: bind
source: ./repos/state-conductor
target: /state-conductor
depends_on:
- prometheus
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.38.6
ports:
- target: 8080
published: 20080
volumes:
- type: bind
source: /
target: /rootfs
read_only: true
- type: bind
source: /var/run
target: /var/run
- type: bind
source: /sys
target: /sys
read_only: true
- type: bind
source: /var/lib/docker/
target: /var/lib/docker
read_only: true