-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
57 lines (57 loc) · 2.15 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
57 lines (57 loc) · 2.15 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
grafana:
extends:
file: docker-compose-defaults.yaml
service: grafana
container_name: 'grafana-logsapp'
build:
context: ./.config
args:
grafana_image: ${GRAFANA_IMAGE:-grafana}
ports: !override
- 3001:3000/tcp
environment:
# Force Query Library off so the Playwright e2e suite deterministically exercises the local
# saved-search fallback across all Grafana versions. Nightly ships queryLibrary enabled by
# default, which swaps in Grafana's Saved Queries UI and breaks the savedSearches tests.
GF_FEATURE_TOGGLES_queryLibrary: 'false'
extra_hosts:
# This allows us to connect to other services running on the host machine.
# 172.17.0.1 is the default Docker bridge network gateway IP address
# Using "host-gateway" would be more portable across different Docker setups but fails in our CI build
- 'host.docker.internal:172.17.0.1'
loki:
# Static-data Loki for the Playwright e2e suite. The image bakes in the
# snapshot from tests/static-loki/provisioning/loki/data.zip, so there is no live
# generator. Regenerate the snapshot with pnpm run generate:loki-snapshot.
build:
context: .
dockerfile: tests/static-loki/docker/Dockerfile.loki-static-data
image: logs-drilldown/loki-static-data:e2e
environment:
LOG_CLUSTER_DEPTH: '8'
LOG_SIM_TH: '0.3'
ports:
- '3100:3100'
command:
- -config.file=/etc/loki/local-config.yaml
- -runtime-config.file=/etc/loki/overrides.yaml
healthcheck:
# Loki's distroless image has no shell, so we use a static busybox
# binary copied into Dockerfile.loki-static-data and invoke it via
# Docker's exec form. /ready returns 200 once Loki finishes loading
# the baked-in snapshot.
test:
- CMD
- /usr/local/bin/wget
- -q
- -O
- /dev/null
- http://localhost:3100/ready
# Loki's ingester sleeps ~22-30s before marking itself ready, so
# start_period is generous to keep CI logs clean.
interval: 5s
timeout: 5s
retries: 30
start_period: 45s
restart: on-failure