Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Fauxmo:
- docker run --name fauxmo -v $HOME:/config -d --restart unless-stopped --network host ciberado/fauxmo-docker-rpi
- # Telegraf:
- docker run -d -v $PWD/telegraf.conf:/etc/telegraf/telegraf.conf:ro --network=host --restart=unless-stopped arm32v7/telegraf
- # Prometheus
- docker volume create prometheus-data
- docker run -d -v $PWD/prometheus.yml:/etc/prometheus/prometheus.yml:ro --network=host --restart=unless-stopped prom/prometheus
- # Grafana
- docker run -d -p 3000:3000 --name=grafana --restart=unless-stopped -e "GF_SECURITY_ALLOW_EMBEDDING=true" grafana/grafana
- # Smartclock
- git clone https://github.com/ciberado/smartclock.git
- docker run --name smartclock -d -p 8080:80 -v $(pwd)/smartclock:/usr/share/nginx/html:ro nginx:alpine
- ## docker-compose
- services:
- mosquitto:
- container_name: mosquitto
- image: eclipse-mosquitto
- ports:
- - 1883:1883/tcp
- restart: unless-stopped
- network_mode: host
- grafana:
- container_name: grafana
- entrypoint:
- - /run.sh
- environment:
- - PATH=/usr/share/grafana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- - GF_PATHS_CONFIG=/etc/grafana/grafana.ini
- - GF_PATHS_DATA=/var/lib/grafana
- - GF_PATHS_HOME=/usr/share/grafana
- - GF_PATHS_LOGS=/var/log/grafana
- - GF_PATHS_PLUGINS=/var/lib/grafana/plugins
- - GF_PATHS_PROVISIONING=/etc/grafana/provisioning
- expose:
- - 3000/tcp
- image: grafana/grafana
- restart: unless-stopped
- user: grafana
- volumes:
- - /home/pi/grafana_defaults.ini:/usr/share/grafana/conf/defaults.ini
- working_dir: /usr/share/grafana
- network_mode: host
- # homie:
- # command:
- # - 'node index.js'
- # container_name: homie
- # image: ciberado/homie
- # restart: unless-stopped
- prometheus:
- container_name: prometheus
- expose:
- - 9090/tcp
- image: prom/prometheus
- restart: unless-stopped
- volumes:
- - prometheus-data:/prometheus
- - /home/pi/prometheus.yml:/etc/prometheus/prometheus.yml
- working_dir: /prometheus
- network_mode: host
- smartclock:
- container_name: smartclock
- image: nginx:alpine
- ports:
- - 8080:80/tcp
- volumes:
- - /home/pi/smartclock:/usr/share/nginx/html:ro
- network_mode: host
- telegraf:
- container_name: telegraf
- expose:
- - 8092/udp
- - 8125/udp
- - 8094/tcp
- image: arm32v7/telegraf
- ipc: private
- restart: unless-stopped
- volumes:
- - /home/pi/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- network_mode: host
- transmission:
- container_name: transmission
- image: linuxserver/transmission
- ports:
- - 9091:9091/tcp
- - 51413:51413/tcp
- - 51413:51413/udp
- restart: unless-stopped
- volumes:
- - /media/transmission:/config
- - /media/torrent:/downloads
- network_mode: host
- version: "3"
- volumes:
- prometheus-data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement