基本資訊
Raspberry Pi 4B (4GB) v1.1
SD Card 16 GB
External Disk Driver 1 TB
Case No, Heat Sink Yes
Raspberry Pi OS 64 bit
Docker 20.10.6
準備一個 docker-compose.yml 檔案如下
version: '3'
services:
rpi-monitor:
image: michaelmiklis/rpi-monitor:latest
container_name: rpi-monitor
volumes:
# Broadcom's libs and utilities
- /opt/vc:/opt/vc
# Boot up procs include kernal
- /boot:/boot
# Device driver procs info
- /sys:/dockerhost/sys:ro
# Runtime sys info
- /proc:/dockerhost/proc:ro
# App confs
- /etc:/dockerhost/etc:ro
# Usr's libs
- /usr/lib:/dockerhost/usr/lib:ro
# Main config
- ${your_conf_file_path}:/etc/rpimonitor/template/raspbian.conf:ro
# RRD data mnt
- ${your_rrd_data_folder}:/var/lib/rpimonitor/stat/
devices:
# Video Core related
- "/dev/vchiq:/dev/vchiq"
- "/dev/vcsm-cma:/dev/vcsm-cma"
restart: unless-stopped
ports:
- 8888:8888
接著執行以下指令
mkdir ~/rpi-monitor
nano ~/rpi-monitor/docker-compose.yml
...
...
...
cd ~/rpi-monitor
docker-compose up -d
...
...
...
## Go to your browser and browse http://{rpi_host or ip}:8888
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.
評論