Custom aarch64 mqtt-io for Raspberry Pi. Includes RPi.GPIO support for GPIO over MQTT.
10K+
This custom Docker image provides mqtt-io support for Raspberry Pi devices with aarch64 architecture, specifically designed to handle GPIO through RPi.GPIO and Adafruit-Blinka.
This Docker image is based on the mqtt-io project, with added dependencies for RPi.GPIO and Adafruit-Blinka. This enables GPIO functionality on Raspberry Pi running aarch64 architecture.
Docker Hub Image: megapearl/gpio2mqtt:latest
aarch64.docker-compose.ymlCreate a docker-compose.yml file in your working directory with the following configuration:
version: '3.7'
services:
gpio2mqtt:
container_name: gpio2mqtt
hostname: gpio2mqtt
image: megapearl/gpio2mqtt:latest
restart: unless-stopped
tty: true
privileged: true
healthcheck:
test: ["CMD-SHELL", "if grep 'OSError:' /gpio2mqtt.log; then exit 1; else exit 0; fi"]
interval: 60s
timeout: 10s
retries: 2
volumes:
- /var/log/gpio2mqtt.log:/gpio2mqtt.log
- /home/dockers/gpio2mqtt/config.yml:/config.yml
- /var/run/docker.sock:/var/run/docker.sock
environment:
- PUID=1000
- PGID=100
- TZ=Europe/Amsterdam
devices:
- /dev/i2c-1:/dev/i2c-1
- /dev/ttyUSB0:/dev/ttyUSB0
config.yml Fileconfig.yml file in /home/dockers/gpio2mqtt/ on the host machine.In the terminal, navigate to the directory containing your docker-compose.yml file and run:
docker-compose up -d
This command will:
megapearl/gpio2mqtt:latest image from Docker Hub.To confirm that the container is running correctly, check the logs:
docker logs gpio2mqtt
If the health check finds issues, such as an OSError, the container will automatically attempt to restart.
To ensure you’re using the latest version with possible improvements or fixes:
docker-compose pull gpio2mqtt
docker-compose up -d
aarch64 architecture version of mqtt-io, which includes necessary GPIO modules (RPi.GPIO, Adafruit-Blinka) to enable hardware support on Raspberry Pi.For further assistance or questions, please refer to the original mqtt-io documentation or the RPi.GPIO documentation.
Content type
Image
Digest
sha256:9e10fb6e5…
Size
137.9 MB
Last updated
7 minutes ago
docker pull megapearl/gpio2mqtt