-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.87 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
version: '3.8'
services:
prometheus:
image: prom/prometheus:latest
container_name: themisdb-prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./provisioning/alerts.yml:/etc/prometheus/alerts.yml
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=15d'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
- "9090:9090" # Prometheus UI and API
networks:
- themisdb-monitoring
restart: unless-stopped
grafana:
image: grafana/grafana:latest
container_name: themisdb-grafana
volumes:
- ./provisioning:/etc/grafana/provisioning
- ./dashboards:/etc/grafana/provisioning/dashboards
- grafana-data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
- GF_SERVER_ROOT_URL=http://localhost:3000
- GF_INSTALL_PLUGINS=
ports:
- "3000:3000"
networks:
- themisdb-monitoring
depends_on:
- prometheus
restart: unless-stopped
# Placeholder for ThemisDB - will be replaced with actual service
themisdb:
image: themisdb/themisdb:latest
container_name: themisdb
environment:
- THEMIS_ENABLE_METRICS=true
- THEMIS_METRICS_PORT=9091
ports:
- "19091:9091" # Metrics endpoint - changed to avoid conflict
- "8080:8080" # API endpoint
networks:
- themisdb-monitoring
restart: unless-stopped
# Remove this if using actual ThemisDB image
command: /bin/sh -c "echo 'ThemisDB placeholder'; sleep infinity"
networks:
themisdb-monitoring:
driver: bridge
volumes:
prometheus-data:
grafana-data: