-
Notifications
You must be signed in to change notification settings - Fork 6
/
compose.yaml
40 lines (36 loc) · 1.72 KB
/
compose.yaml
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
# ============================================================================ #
# Monolithic Mode - Logs
# ============================================================================ #
# Note:
# include is available in Docker Compose version 2.20 and later, and Docker Desktop version 4.22 and later.
# docs: https://docs.docker.com/compose/multiple-compose-files/include/#include-and-overrides
include:
- path: ../../common/compose-include/minio.yaml
- path: ../../common/compose-include/memcached.yaml
- path: ../../common/compose-include/loki.yaml
- path: ../../common/compose-include/mimir.yaml
- path: ../../common/compose-include/grafana.yaml
- path: ../../common/compose-include/alloy.yaml
configs:
alloy_config_file:
file: ../../common/config/alloy/logs.alloy
mimir_config_file:
file: ../../common/config/mimir/monolithic-mode-metrics.yaml
loki_config_file:
file: ../../common/config/loki/monolithic-mode-logs.yaml
services:
gateway:
labels:
metrics.grafana.com/scrape: false
# depends_on: { loki: { condition: service_healthy } }
image: ${NGINX_IMAGE:-docker.io/nginxinc/nginx-unprivileged:1.27-alpine}
volumes:
- ../../common/config/nginx/10-default-lgtmp.envsh:/docker-entrypoint.d/10-default-lgtmp.envsh
- ../../common/config/nginx/nginx.conf:/etc/nginx/templates/nginx.conf.template
- ../../common/config/loki/gateway_loki.conf:/etc/nginx/templates/gateway_loki.conf.template
- ../../common/config/mimir/gateway_mimir.conf:/etc/nginx/templates/gateway_mimir.conf.template
healthcheck:
test: [ "CMD", "/usr/bin/wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3100/" ]
interval: 3s
timeout: 1s
retries: 20