-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (80 loc) · 1.94 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
services:
loki:
container_name: loki
image: docker.arvancloud.ir/grafana/loki:2.9.4
command: -config.file=/etc/loki/local-config.yaml
ports:
- "127.0.0.1:3100:3100"
volumes:
- ./config/loki/loki-config.yaml:/etc/loki/local-config.yaml
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- internal_central
deploy:
resources:
limits:
cpus: '0.2'
memory: 600M
logging:
options:
max-size: "1024m"
grafana:
image: docker.arvancloud.ir/grafana/grafana-oss:10.3.1
container_name: grafana
ports:
- "127.0.0.1:3000:3000"
environment:
# - GF_LOG_LEVEL=warn
- GF_ANALYTICS_REPORTING_ENABLED=false
- GF_AUTH_ANONYMOUS_ENABLED=false
# volumes:
# - grafana:/var/lib/grafana
networks:
- internal_central
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
depends_on:
loki:
condition: service_healthy
deploy:
resources:
limits:
cpus: '0.2'
memory: 600M
logging:
options:
max-size: "1024m"
vector_central:
image: docker.arvancloud.ir/timberio/vector:0.35.0-alpine
container_name: vector_central
ports:
- "5123:5123/udp"
volumes:
- ./config/vector/vector.central.yaml:/etc/vector/vector.yaml:ro
networks:
- internal_central
- vector_central
depends_on:
loki:
condition: service_healthy
deploy:
resources:
limits:
cpus: '0.2'
memory: 600M
logging:
options:
max-size: "1024m"
# volumes:
# grafana:
networks:
internal_central:
vector_central:
name: vector_central