-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (56 loc) · 1.42 KB
/
docker-compose.yml
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
version: '3.8'
networks:
monitoring:
driver: bridge
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: unless-stopped
user: "0"
# ports:
# - 9090:9090
volumes:
- ./prometheus/data/:/prometheus
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=365d'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
networks:
- monitoring
grafana:
image: grafana/grafana
user: "0"
container_name: grafana
hostname: grafana
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./grafana/data/:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/public/maps:/usr/share/grafana/public/maps
networks:
- monitoring
db:
image: postgres:14.1-alpine
container_name: pgdb
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=great_password_from_the_env
ports:
- '5432:5432'
volumes:
- ./db:/var/lib/postgresql/data
admin:
container_name: adminer
image: adminer
restart: always
depends_on:
- db
ports:
- 8089:8080