refactor: remove Loki, Promtail, and Grafana services from Docker Compose files
This commit is contained in:
@@ -86,58 +86,58 @@ services:
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
# Optional local observability stack (can be enabled on servers that
|
||||
# should run Loki/Grafana). These services use configs found under
|
||||
# the repository `docker/` directory so the same config works in dev.
|
||||
loki:
|
||||
image: grafana/loki:2.8.2
|
||||
command: -config.file=/etc/loki/local-config.yaml
|
||||
ports:
|
||||
- "3100:3100"
|
||||
volumes:
|
||||
- ./loki-config/local-config.yaml:/etc/loki/local-config.yaml:ro
|
||||
- ../docker/loki-data:/loki
|
||||
# WAL directory: map a host folder so Loki (running as UID 10001)
|
||||
# can create the write-ahead log. Host folder created under
|
||||
# `docker/loki-wal` and owned by UID 10001.
|
||||
- ../docker/loki-wal:/wal
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:3100/ready || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 6
|
||||
|
||||
promtail:
|
||||
image: grafana/promtail:2.8.2
|
||||
volumes:
|
||||
# In prod you may want to point this at the host system log directory.
|
||||
- ../logs:/var/log/rad:ro
|
||||
- ./promtail-config.yml:/etc/promtail/promtail-config.yml:ro
|
||||
command: -config.file=/etc/promtail/promtail-config.yml
|
||||
depends_on:
|
||||
- loki
|
||||
restart: unless-stopped
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:10.2.0
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_PASSWORD=admin
|
||||
volumes:
|
||||
- grafana-data:/var/lib/grafana
|
||||
depends_on:
|
||||
loki:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
# # Optional local observability stack (can be enabled on servers that
|
||||
# # should run Loki/Grafana). These services use configs found under
|
||||
# # the repository `docker/` directory so the same config works in dev.
|
||||
# loki:
|
||||
# image: grafana/loki:2.8.2
|
||||
# command: -config.file=/etc/loki/local-config.yaml
|
||||
# ports:
|
||||
# - "3100:3100"
|
||||
# volumes:
|
||||
# - ./loki-config/local-config.yaml:/etc/loki/local-config.yaml:ro
|
||||
# - ../docker/loki-data:/loki
|
||||
# # WAL directory: map a host folder so Loki (running as UID 10001)
|
||||
# # can create the write-ahead log. Host folder created under
|
||||
# # `docker/loki-wal` and owned by UID 10001.
|
||||
# - ../docker/loki-wal:/wal
|
||||
# restart: unless-stopped
|
||||
# healthcheck:
|
||||
# test: ["CMD-SHELL", "wget -qO- http://localhost:3100/ready || exit 1"]
|
||||
# interval: 10s
|
||||
# timeout: 5s
|
||||
# retries: 6
|
||||
#
|
||||
# promtail:
|
||||
# image: grafana/promtail:2.8.2
|
||||
# volumes:
|
||||
# # In prod you may want to point this at the host system log directory.
|
||||
# - ../logs:/var/log/rad:ro
|
||||
# - ./promtail-config.yml:/etc/promtail/promtail-config.yml:ro
|
||||
# command: -config.file=/etc/promtail/promtail-config.yml
|
||||
# depends_on:
|
||||
# - loki
|
||||
# restart: unless-stopped
|
||||
#
|
||||
# grafana:
|
||||
# image: grafana/grafana:10.2.0
|
||||
# ports:
|
||||
# - "3000:3000"
|
||||
# environment:
|
||||
# - GF_SECURITY_ADMIN_PASSWORD=admin
|
||||
# volumes:
|
||||
# - grafana-data:/var/lib/grafana
|
||||
# depends_on:
|
||||
# loki:
|
||||
# condition: service_healthy
|
||||
# restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
redis_data:
|
||||
static_volume:
|
||||
media_volume:
|
||||
grafana-data:
|
||||
#grafana-data:
|
||||
|
||||
networks:
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user