Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
59 lines (54 loc) · 1.49 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
59 lines (54 loc) · 1.49 KB
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
#
# This docker compose is for developing the prometheus-snapshot-manager
# If you want to _use_ the project, look at the docker-compose.yml file instead.
#
services:
prometheus:
image: prom/prometheus:latest
container_name: dev-prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.enable-admin-api"
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
networks:
- monitoring
node-exporter:
image: prom/node-exporter:latest
container_name: dev-node-exporter
command:
- "--path.rootfs=/host"
volumes:
- /:/host:ro,rslave
networks:
- monitoring
prometheus-snapshot-manager:
build:
context: .
dockerfile: Dockerfile
container_name: dev-prometheus-snapshot-mgr
volumes:
# config
- ./config.dev.yaml:/etc/prometheus-snapshot-manager/config.yaml:ro
# data to backup -- needs rw to allow for snapshot archive creation&deletion (transient file)
- prometheus_data:/prometheus:rw
# backup destination:
- ./test-backup/prometheus:/backup/prometheus:rw
environment:
- SFTP_PASSWORD=mysecretpassword
- AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
networks:
- monitoring
restart: unless-stopped
depends_on:
- prometheus
- node-exporter
volumes:
prometheus_data:
networks:
monitoring:
driver: bridge