-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.testing.yaml
49 lines (44 loc) · 1.02 KB
/
docker-compose.testing.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
version: "3"
volumes:
prusa_syslog:
networks:
prusa:
services:
exporter:
build: .
container_name: exporter
restart: unless-stopped
volumes:
- prusa_syslog:/var/log/prusa
- type: bind
source: ./prusa.yml
target: /app/prusa.yml
ports:
- "10007:10007/udp"
- "10008:10008/udp"
- "10009:10009"
command: '--config.file=/app/prusa.yml'
networks:
- prusa
agent:
image: grafana/agent:v0.40.3
container_name: grafana_agent
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- prusa_syslog:/var/log/prusa
- type: bind
source: ./agent.yaml
target: /etc/agent-config/agent.yaml
entrypoint:
- /bin/grafana-agent
- -server.http.address=0.0.0.0:12345
- -config.file=/etc/agent-config/agent.yaml
- -metrics.wal-directory=/tmp/agent/wal
ports:
- "12345:12345"
- "3500:3500"
networks:
- prusa
depends_on:
- exporter