-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-services.yaml
61 lines (55 loc) · 1.59 KB
/
docker-compose-services.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Compose file to set up the following services for local testing:
# - grafana
# - prometheus
# - loki
# - promtail
# based heavily on:
# https://grafana.com/docs/grafana-cloud/quickstart/docker-compose-linux/
# https://raw.githubusercontent.com/grafana/loki/v2.8.0/production/docker-compose.yaml
version: "3.9"
networks:
mango:
driver: bridge
volumes:
prometheus_data: {}
loki_data: {}
services:
loki:
image: docker.io/grafana/loki:latest
volumes:
- ./test/mockup/services/loki-config.yaml:/etc/loki/local-config.yaml
- loki_data:/loki
command: -config.file=/etc/loki/local-config.yaml
networks:
- mango
ports:
- "3100:3100"
prometheus:
image: docker.io/prom/prometheus:latest
restart: unless-stopped
volumes:
- ./test/mockup/services/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
networks:
- mango
ports:
- "9090:9090"
grafana:
environment:
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
volumes:
- ./test/mockup/services/grafana:/etc/grafana/provisioning
- ./grafana:/var/lib/grafana/dashboards
image: docker.io/grafana/grafana:latest
networks:
- mango
ports:
- "3000:3000"