Commit ba8bba88 authored by CarlosEDP's avatar CarlosEDP
Browse files

Fix indentation and version

parent 1390578b
version: '3.4'
version: '2'
volumes:
portainer_data: {}
prometheus_data: {}
grafana_data: {}
portainer_data: {}
prometheus_data: {}
grafana_data: {}
networks:
monitoring:
monitoring:
services:
portainer:
image: portainer/portainer
restart: always
networks:
- monitoring
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
portainer:
image: portainer/portainer
restart: always
networks:
- monitoring
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
prometheus:
image: napnap75/rpi-prometheus:prometheus
depends_on:
- cadvisor
- node_exporter
restart: unless-stopped
networks:
- monitoring
ports:
- 9090:9090
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention=10d'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
# deploy:
# placement:
# constraints:
# - node.hostname == ${HOSTNAME}
prometheus:
image: napnap75/rpi-prometheus:prometheus
depends_on:
- cadvisor
- node_exporter
restart: unless-stopped
networks:
- monitoring
ports:
- 9090:9090
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention=10d'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
# deploy:
# placement:
# constraints:
# - node.hostname == ${HOSTNAME}
node_exporter:
image: napnap75/rpi-prometheus:node_exporter
restart: unless-stopped
networks:
- monitoring
ports:
- 9100:9100
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- --collector.filesystem.ignored-mount-points
- "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)"
# deploy:
# mode: global
node_exporter:
image: napnap75/rpi-prometheus:node_exporter
restart: unless-stopped
networks:
- monitoring
ports:
- 9100:9100
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- --collector.filesystem.ignored-mount-points
- "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)"
# deploy:
# mode: global
cadvisor:
image: carlosedp/rpi-cadvisor
restart: unless-stopped
networks:
- monitoring
ports:
- 8082:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
# deploy:
# mode: global
cadvisor:
image: carlosedp/rpi-cadvisor
restart: unless-stopped
networks:
- monitoring
ports:
- 8082:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
# deploy:
# mode: global
# alertmanager:
# image: napnap75/rpi-prometheus:alertmanager
# restart: unless-stopped
# networks:
# - monitoring
# ports:
# - 9093:9093
# volumes:
# - ./alertmanager/:/etc/alertmanager/
# command:
# - '-config.file=/etc/alertmanager/config.yml'
# - '-storage.path=/alertmanager'
# deploy:
# placement:
# constraints:
# - node.hostname == ${HOSTNAME}
# alertmanager:
# image: napnap75/rpi-prometheus:alertmanager
# restart: unless-stopped
# networks:
# - monitoring
# ports:
# - 9093:9093
# volumes:
# - ./alertmanager/:/etc/alertmanager/
# command:
# - '-config.file=/etc/alertmanager/config.yml'
# - '-storage.path=/alertmanager'
# deploy:
# placement:
# constraints:
# - node.hostname == ${HOSTNAME}
grafana:
image: fg2it/grafana-armhf:v4.6.3
depends_on:
- prometheus
restart: unless-stopped
networks:
- monitoring
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
grafana:
image: fg2it/grafana-armhf:v4.6.3
depends_on:
- prometheus
restart: unless-stopped
networks:
- monitoring
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
env_file:
- config.monitoring
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment