1
0
mirror of https://github.com/kropachev/onec-prometheus.git synced 2024-11-21 10:45:44 +02:00
onec-prometheus/docker-compose.yaml
Sergey Kropachev aa1cb752a9
Update docker-compose.yaml
Изменена версия файла
2022-09-26 09:58:15 +03:00

49 lines
1.2 KiB
YAML

version: "2.2"
services:
prometheus:
image: prom/prometheus
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'
- '--storage.tsdb.retention=30d'
restart: unless-stopped
volumes:
- ./prometheus:/etc/prometheus/
ports:
- 9090:9090
# alertmanager:
# image: prom/alertmanager
# container_name: alertmanager
# volumes:
# - ./alertmanager/:/etc/alertmanager/
# command:
# - '--config.file=/etc/alertmanager/config.yml'
# - '--storage.path=/alertmanager'
# restart: unless-stopped
# expose:
# - 9093
pushgate:
image: prom/pushgateway
command:
- '--web.enable-admin-api'
restart: unless-stopped
ports:
- 9091:9091
grafana:
image: grafana/grafana
# volumes:
# - grafana_data:/var/lib/grafana
# - ./grafana/datasources:/etc/grafana/datasources
# - ./grafana/dashboards:/etc/grafana/dashboards
# - ./grafana/setup.sh:/setup.sh
restart: unless-stopped
ports:
- 3000:3000