forked from pyrra-dev/pyrra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (48 loc) · 1.19 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
version: "3"
networks:
pyrra:
volumes:
prometheus_pyrra: {}
services:
prometheus:
image: prom/prometheus:v2.47.0
container_name: prometheus
restart: always
networks:
- pyrra
ports:
- "9090:9090"
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=33d
- --web.enable-lifecycle
volumes:
- ./prometheus/prometheus.yaml:/etc/prometheus/prometheus.yml:ro
- prometheus_pyrra:/etc/prometheus/pyrra
pyrra-api:
image: ghcr.io/pyrra-dev/pyrra:v0.7.5
container_name: pyrra_api
restart: always
command:
- api
- --prometheus-url=http://prometheus:9090
- --prometheus-external-url=http://localhost:9090
- --api-url=http://pyrra-filesystem:9444
ports:
- "9099:9099"
networks:
- pyrra
pyrra-filesystem:
image: ghcr.io/pyrra-dev/pyrra:v0.7.5
user: root
container_name: pyrra_filesystem
restart: always
command:
- filesystem
- --prometheus-url=http://prometheus:9090
networks:
- pyrra
volumes:
- ./pyrra:/etc/pyrra
- prometheus_pyrra:/etc/prometheus/pyrra