-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 945 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 945 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
37
38
39
40
41
42
43
44
45
46
networks:
we-go-network:
driver: bridge
volumes:
redis-data:
prometheus-data:
grafana-data:
services:
redis:
image: redis:7-alpine
container_name: we-go-redis
restart: unless-stopped
ports:
- "6379:6379"
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis-data:/data
networks:
- we-go-network
prometheus:
image: prom/prometheus:latest
container_name: we-go-prometheus
restart: unless-stopped
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- we-go-network
grafana:
image: grafana/grafana:latest
container_name: we-go-grafana
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
networks:
- we-go-network