-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
49 lines (44 loc) · 1.13 KB
/
docker-compose.yml
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
version: "3.3"
services:
nodejs:
build: .
restart: always
ports:
- "3000:3000"
logging:
driver: "json-file"
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
prometheus:
image: prom/prometheus:latest
volumes:
- ./docker/config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- "--config.file=/etc/prometheus/prometheus.yml"
ports:
- "9090:9090"
grafana:
image: grafana/grafana:latest
container_name: monitoring_grafana
restart: unless-stopped
links:
- prometheus:prometheus
environment:
- GF_SECURITY_ADMIN_PASSWORD=12345
- GF_SERVER_HTTP_PORT=3333
ports:
- "3333:3333"
loki:
image: grafana/loki:2.2.1
ports:
- "3100:3100"
volumes:
- ./docker/config/loki:/etc/loki
command: -config.file=/etc/loki/loki-config.yaml
promtail:
image: grafana/promtail:2.2.1
volumes:
- /var/log:/var/log
- ./docker/config/promtail:/etc/promtail
- /var/lib/docker/:/var/lib/docker:ro
command: -config.file=/etc/promtail/promtail-config.yaml