forked from gradients-ai/G.O.D
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.observability-server.yml
More file actions
109 lines (104 loc) · 3.16 KB
/
docker-compose.observability-server.yml
File metadata and controls
109 lines (104 loc) · 3.16 KB
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
# Deploy this on your observability/monitoring server
version: '3.8'
services:
grafana-training:
container_name: god-grafana-training
image: grafana/grafana:latest
restart: always
environment:
GF_SECURITY_ADMIN_USER: ${GRAFANA_TRAINING_USERNAME:-admin}
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_TRAINING_PASSWORD:-changeme}
GF_INSTALL_PLUGINS: redis-datasource
GF_SERVER_HTTP_PORT: 3001
GF_SERVER_ROOT_URL: http://localhost:3001
GF_AUTH_ANONYMOUS_ENABLED: ${GRAFANA_ANONYMOUS_ENABLED:-false}
GF_AUTH_ANONYMOUS_ORG_NAME: "Main Org."
GF_AUTH_ANONYMOUS_ORG_ROLE: "Viewer"
GF_AUTH_BASIC_ENABLED: "true"
ports:
- "3001:3001"
volumes:
- ./config/grafana-training-datasource.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:ro
- ./config/grafana-training-dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro
- ./config/grafana-training-dashboard.json:/var/lib/grafana/dashboards/grafana-training-dashboard.json:ro
- grafana-training-data:/var/lib/grafana
deploy:
resources:
limits:
memory: 2G
cpus: '1'
reservations:
memory: 512M
networks:
- training-observability
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3001/api/health"]
interval: 30s
timeout: 10s
retries: 3
loki-training:
container_name: god-loki-training
image: grafana/loki:main
restart: always
command: -config.file=/etc/loki/local-config.yaml
environment:
LOKI_AUTH_ENABLED: ${LOKI_AUTH_ENABLED:-false}
ports:
- "3101:3100"
volumes:
- loki-training:/loki
- ./config/loki-training-config.yaml:/etc/loki/local-config.yaml:ro
deploy:
resources:
limits:
memory: 4G
cpus: '2'
reservations:
memory: 1G
networks:
- training-observability
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3100/ready"]
interval: 30s
timeout: 10s
retries: 3
prometheus-training:
container_name: god-prometheus-training
image: prom/prometheus:latest
restart: always
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=30d
- --web.console.libraries=/usr/share/prometheus/console_libraries
- --web.console.templates=/usr/share/prometheus/consoles
- --web.enable-lifecycle
ports:
- "9090:9090"
volumes:
- prometheus-training:/prometheus
- ./config/prometheus-training-config.yaml:/etc/prometheus/prometheus.yml:ro
deploy:
resources:
limits:
memory: 2G
cpus: '1'
reservations:
memory: 512M
networks:
- training-observability
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:9090/-/healthy"]
interval: 30s
timeout: 10s
retries: 3
networks:
training-observability:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16
volumes:
grafana-training-data:
loki-training:
prometheus-training: