-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
115 lines (107 loc) · 2.84 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
version: "3.9"
volumes:
prometheus_data: {}
loki_data: {}
grafana_data: {}
networks:
bwnet:
services:
baywatch:
image: 'ghcr.io/marthym/baywatch:2.2.0-SNAPSHOT'
depends_on:
- opentelemetry
labels:
application: baywatch
read_only: true
environment:
BAYWATCH_DNS_SERVERS: 9.9.9.9, 8.8.8.8, 2620:fe::fe
BAYWATCH_GRAPHQL_INTROSPECTION: true
BAYWATCH_HOME: /var/lib/baywatch
BAYWATCH_IMGPROXY_ENABLE: 'false'
BAYWATCH_LOG_LEVEL: DEBUG
SPRING_MAIN_BANNER-MODE: off
SPRING_PROFILES_ACTIVE: json-logging
logging:
options:
labels: 'application'
tag: 'id={{.ID}} name={{.Name}} image={{.ImageName}}'
ports:
- '8081:8081'
networks:
- bwnet
volumes:
- /home/marthym:/var/lib/baywatch
- /tmp/baywatch:/tmp
prometheus:
image: prom/prometheus:v2.43.0
depends_on:
- opentelemetry
networks:
- bwnet
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
volumes:
- ./.compose/prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
loki:
image: grafana/loki:2.8.1
networks:
- bwnet
command:
- -config.file=/etc/loki/local-config.yaml
- -config.expand-env=true
logging:
driver: local
options:
max-size: 10m
volumes:
- ./.compose/loki/local-config.yaml:/etc/loki/local-config.yaml
- loki_data:/loki
grafana:
image: grafana/grafana:8.5.22
user: "472"
depends_on:
- prometheus
- loki
ports:
- '3000:3000'
networks:
- bwnet
environment:
GF_SECURITY_ADMIN_USER: baywatch
GF_SECURITY_ADMIN_PASSWORD: baywatch
GF_USERS_ALLOW_SIGN_UP: false
logging:
driver: local
options:
max-size: 10m
volumes:
- grafana_data:/var/lib/grafana
- ./.compose/grafana/provisioning/:/etc/grafana/provisioning/
opentelemetry:
image: otel/opentelemetry-collector-contrib:0.75.0
depends_on:
- loki
user: '0:0'
command:
- '--config=/etc/otel/receiver_filelog_container.yaml'
- '--config=/etc/otel/receiver_prometheus.yaml'
- '--config=/etc/otel/processor_batch.yaml'
- '--config=/etc/otel/processor_attributes.yaml'
- '--config=/etc/otel/exporter_loki.yaml'
- '--config=/etc/otel/exporter_logging.yaml'
- '--config=/etc/otel/exporter_prometheus.yaml'
- '--config=/etc/otel/service.yaml'
logging:
driver: local
options:
max-size: 10m
networks:
- bwnet
volumes:
- './.compose/opentelemetry:/etc/otel:ro'
- '/home/docker/containers:/var/lib/docker/containers:ro'