-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.26 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
50
51
52
53
54
55
version: "3.4"
services:
my-nginx-service:
image: nginx
container_name: my-nginx-service
ports:
- 8000:80
environment:
- FOO=bar
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-external-labels: job=dockerlogs,owner=everton,environment=development
# logger-app:
# image: ctovena/logger:latest
# container_name: logger
# logging:
# driver: loki
# options:
# loki-url: http://localhost:3100/loki/api/v1/push
# loki-external-labels: job=dockerlogs,owner=ruan,environment=development
grafana:
image: grafana/grafana:7.2.2
container_name: grafana
volumes:
- ./config/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
ports:
- "3000:3000"
loki:
image: grafana/loki:2.0.0
container_name: loki
volumes:
- ./config/loki.yaml:/etc/config/loki.yaml
entrypoint:
- /usr/bin/loki
- -config.file=/etc/config/loki.yaml
ports:
- "3100:3100"
ngrok:
image: wernight/ngrok:latest
ports:
- 4041:4040
environment:
NGROK_PROTOCOL: http
NGROK_PORT: loki:3100
NGROK_AUTH: 'your-secret-token'
NGROK_DEBUG: 'true'
depends_on:
- loki