panopticon/service.yml

37 lines
887 B
YAML

name: panopticon
volumes:
- name: grafana-storage
- name: prometheus-storage
- name: loki-storage
ports:
# Grafana web
- host: 3100
container: 3000
# Loki
- host: 3101
container: 3100
# Prometheus
- host: 9090
container: 9090
containers:
- name: grafana
image: grafana/grafana
volumes:
- name: grafana-storage
container: /var/lib/grafana
- name: loki
image: grafana/loki:main-a08ee68 # Updated: 11/6/2024
volumes:
- name: loki-storage
container: /loki
- name: prometheus
image: prom/prometheus
volumes:
- name: prometheus-storage
container: /prometheus
- host: ./prometheus.yml
container: /etc/prometheus/prometheus.yml
extra-args:
- --storage.tsdb.retention.time=60d
- --storage.tsdb.path=/prometheus
- --config.file=/etc/prometheus/prometheus.yml