3.4 KiB
BirdNET-Pi Docker Installation Guide
This guide provides instructions on how to install and run the BirdNET-Pi container using Docker Compose without dependency on HomeAssistant.
Thanks to @gotschi for the initial Docker Compose
Prerequisites
Ensure you have the following installed on your system:
Installation
-
Create a directory for BirdNET-Pi
mkdir -p ~/birdnet-pi && cd ~/birdnet-pi -
Create a
docker-compose.ymlfile Create and open the file with:nano docker-compose.ymlCopy and paste the following configuration:
version: '3.8' services: birdnet-pi: container_name: birdnet-pi image: ghcr.io/alexbelgium/birdnet-pi-amd64:latest # or ghcr.io/alexbelgium/birdnet-pi-aarch64:latest depending on your system restart: unless-stopped ports: - "8001:8081" # Used to access WebUI - "80:80" # Optional: set to 80 to use Caddy's automatic SSL. Can otherwise be set to null to avoid opening an additional port environment: - TZ=Europe/Vienna # Optional: Set your timezone - BIRDSONGS_FOLDER=/config/BirdSongs # Folder to store bird songs - LIVESTREAM_BOOT_ENABLED=false # Enable/disable livestream on boot - ssl=false # Enable/disable SSL - certfile=fullchain.pem # SSL certificate file (located in /ssl/) - keyfile=privkey.pem # SSL key file (located in /ssl/) - pi_password= # Optional: Set SSH user password - MQTT_HOST_manual= # Optional: Manual MQTT host - MQTT_PASSWORD_manual= # Optional: Manual MQTT password - MQTT_PORT_manual= # Optional: Manual MQTT port - MQTT_USER_manual= # Optional: Manual MQTT user volumes: - ./config:/config # Configuration files - ./ssl:/ssl # SSL certificates - /dev/shm:/dev/shm # Shared memory -
Start the Container Run the following command in the same directory as
docker-compose.yml:docker compose up -dThis will start the BirdNET-Pi container in detached mode.
-
Access BirdNET-Pi Web UI Open your browser and navigate to:
http://localhost:8001 # Or whatever port you have configuredReplace
localhostwith your server's IP address if running on another machine.
Updating to the Latest Version
To check for new versions of the container and update:
-
Check for the latest version Visit the container registry: https://github.com/alexbelgium/hassio-addons/pkgs/container/birdnet-pi-amd64
The latest version tag (e.g.,
2025.02.23) will be listed. -
Update and restart the container Run the following commands:
docker compose pull birdnet-pi docker compose up -d --force-recreateThis pulls the latest image and restarts the container.
-
Verify the update
docker images | grep birdnet-piThis will show the latest downloaded image version.
Stopping and Removing the Container
To stop and remove the container, run:
docker compose down
This will stop and remove BirdNET-Pi while keeping the configuration and recorded songs intact.
Now you're all set to enjoy BirdNET-Pi with Docker! 🐦