Heimdall Installation with Docker Compose

This article contains all the commands required to install Heimdall and docker compose as shown in this video:

https://www.youtube.com/watch?v=lDIEZOOri5E

Download and run the docker installation script:

curl -fsSL https://get.docker.com -o install-docker.sh
sudo sh install-docker.sh

Add the current user to the “docker” group to enable commands to be run without sudo. Replace “pi” with your username if it differs. Lot out and back in to apply changes.

sudo usermod -aG docker pi
sudo su – pi

Check that docker and docker compose have been installed:

docker --version
docker compose version

Create a “docker-compose.yml” file somewhere sensible and paste in the following. Remember to change the ports if there are clashes with other services.

version: "3.6"
services:
  heimdall:
    image: lscr.io/linuxserver/heimdall:latest
    container_name: heimdall
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
    volumes:
      - ./config:/config
    ports:
      - 80:80
      - 443:443
    restart: unless-stopped

Save and exit your editor. If you want to start docker when your Pi boots up, then run the following command:

sudo systemctl enable docker

Now start the docker stack. Run the following command (in the directory of your docker-compose.yml file) to start the containers in the background:

docker compose up

Leave a comment

Your email address will not be published. Required fields are marked *