-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (34 loc) · 858 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
36 lines (34 loc) · 858 Bytes
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
version: "3.1"
services:
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
volumes:
- grafana-storage:/var/lib/grafana
golang:
build:
context: ./
dockerfile: Dockerfile
container_name: golang
restart: always
ports:
- "8113:8113"
prometheus:
container_name: prometheus
image: prom/prometheus:v2.26.0
volumes:
- ./src/prometheus:/etc/prometheus
- prometheus_data:/src/prometheus/data
command:
- "--config.file=/etc/prometheus/prometheus.yaml"
- "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
ports:
- "9090:9090"
restart: always
volumes:
grafana-storage:
prometheus_data: