-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
48 lines (46 loc) · 1.07 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
services:
redis:
image: redis:7.2-alpine
command: redis-server --bind 0.0.0.0
ports:
- 6379:6379
volumes:
- redis_data:/data
app:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
ports:
- 6000:3000
- 8000:8000 # Expose Prometheus metrics port
depends_on:
- redis
environment:
- REDISHOST=redis
volumes:
- ./:/code
# Observability Stack
grafana:
image: grafana/grafana
ports:
- "9091:3000"
volumes:
- grafana-data:/var/lib/grafana
- ./observe/grafana/provisioning:/var/lib/grafana/
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./observe/prometheus.yml:/etc/prometheus/prometheus.yml
# command:
# - '--config.file=/etc/prometheus/prometheus.yml'
# - '--storage.tsdb.path=/prometheus'
# - '--web.console.libraries=/usr/share/prometheus/console_libraries'
# - '--web.console.templates=/usr/share/prometheus/consoles'
volumes:
redis_data:
vb_data:
grafana-data: