📦 NEW: Add Loki service and configuration to Docker Compose setup
This commit is contained in:
@@ -4,6 +4,8 @@ volumes:
|
||||
driver: local
|
||||
prometheus-data:
|
||||
driver: local
|
||||
data_loki:
|
||||
driver: local
|
||||
networks:
|
||||
grafana-prometheus:
|
||||
external: true
|
||||
@@ -58,6 +60,26 @@ services:
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- grafana-prometheus
|
||||
loki:
|
||||
container_name: loki
|
||||
image: docker.io/grafana/loki:3.5.0
|
||||
command: "-config.file=/etc/loki/config.yaml" # Tells Grafana Loki to start with the config file.
|
||||
ports:
|
||||
# --> (Optional) Remove when using traefik...
|
||||
- "3100:3100"
|
||||
# <--
|
||||
volumes:
|
||||
- ./config/loki-config.yaml:/etc/loki/config.yaml:ro
|
||||
- data_loki:/loki:rw
|
||||
networks:
|
||||
- grafana-prometheus
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3100/ready"]
|
||||
interval: 10s # check every 10 seconds
|
||||
timeout: 5s # wait max 5 seconds per check
|
||||
retries: 5 # mark as unhealthy after 5 failures
|
||||
start_period: 20s # wait 20s after container starts before first check
|
||||
https_portal:
|
||||
container_name: https_portal
|
||||
image: "steveltn/https-portal:1.21"
|
||||
@@ -81,4 +103,5 @@ services:
|
||||
- ./https_portal/log:/var/log/nginx # nginx logs
|
||||
depends_on:
|
||||
- prometheus
|
||||
- grafana
|
||||
- grafana
|
||||
- loki
|
||||
Reference in New Issue
Block a user