-
-
Notifications
You must be signed in to change notification settings - Fork 353
/
Copy pathdocker-compose.yaml
62 lines (57 loc) · 1.43 KB
/
docker-compose.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
62
version: '3.8'
networks:
monitoring:
driver: bridge
volumes:
prometheus_data: {}
services:
grafana:
image: grafana/grafana:9.4.3
ports:
- 3000:3000/tcp
volumes:
- ./grafana/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yml
environment:
# configure no-login required access
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_BASIC_ENABLED: "false"
networks:
- monitoring
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: unless-stopped
volumes:
- ./prometheus.yaml:/etc/prometheus/prometheus.yaml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yaml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
ports:
- "9090:9090"
expose:
- 9090
networks:
- monitoring
yace:
build:
context: ../
dockerfile: Dockerfile
restart: always
environment:
AWS_REGION: ${AWS_REGION}
AWS_PROFILE: ${AWS_PROFILE}
expose:
- 8080
volumes:
- ./yace-config.yaml:/tmp/config.yml
- $HOME/.aws:/exporter/.aws:ro
command:
- -listen-address=:8080
- -config.file=/tmp/config.yml
networks:
- monitoring