-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yaml
44 lines (40 loc) · 1013 Bytes
/
docker-compose.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
version: '3'
services:
micros-gateway:
image: bxnxm/micros-gateway:2.0.5
container_name: micros-gateway
environment:
- GATEWAYIP=10.0.1.1
- API_AUTH=usr:pwd
ports:
- "5000:5000" # Expose Flask REST API port to host
networks:
- micros_nw
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_valume:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.retention.time=365d'
ports:
- "9090:9090" # Expose Prometheus UI port to host
networks:
- micros_nw
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000" # Expose Grafana UI port to host
networks:
- micros_nw
volumes:
- grafana_data:/var/lib/grafana # Persist Grafana data
networks:
micros_nw:
driver: bridge
volumes:
prometheus_valume:
grafana_data: