-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
44 lines (39 loc) · 1.06 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
version: '3'
networks:
monitor-net:
driver: bridge
volumes:
prometheus_data: {}
grafana_data: {}
services:
prometheus:
image: prom/prometheus:v2.43.0
container_name: prometheus
volumes:
- ./prometheus.sample.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--storage.tsdb.retention.time=30d'
- '--web.enable-lifecycle'
restart: unless-stopped
expose:
- 9090
networks:
- monitor-net
mii-lama:
image: ghcr.io/zerodha/mii-lama:latest
container_name: mii-lama
depends_on:
- prometheus
volumes:
- ./config.toml:/etc/mii-lama/config.toml:ro
- ./prometheus.sample.yml:/etc/prometheus/prometheus.yml:ro
command:
- '--config=/etc/mii-lama/config.toml'
restart: unless-stopped
networks:
- monitor-net