I run a handful of software services in my own home. I have found these services useful and fun to get running, especially while stuck at home during this pandemic.
Most of these services are accessible via a browser. But since they’re all running on one machine, and thus different ports, navigating to them can be a pain. For example, remembering that Duplicacy Web is on port 3875 is no fun.
Browser bookmarks can work just fine, but Heimdall is a tool that provides a little extra layering on top. I find the visual format of the bookmarks makes navigation quick and obvious. This post is about how I set it up using LinuxServer.io’s image.
LinuxServer.io describes their organization as:
A group of like-minded enthusiasts from across the world who build and maintain the largest collection of Docker images on the web. At our core are the principles behind Free and Open Source Software. Our primary goal is to provide easy-to-use and streamlined Docker images with clear and concise documentation.
I’ve been using LinuxServer.io images for a couple of years. That’s because they’re easy to use, clear, and concisely documented, so I tend to check here first when I need a new image.
docker-compose to Portainer
Historically I’ve run my personal containers using
docker-compose. But recently I migrated everything to Portainer. I did this for two reasons:
- I was getting tired of juggling half a dozen
- I wanted to try Portainer.
Am I entirely happy with this migration? No, of course not. Both approaches have advantages and disadvantages.
But I do like how Portainer lets me navigate to a single dashboard, check the status of running containers, restart them, etc. It’s easier than using an SSH to my host system, finding the correct
docker-compose.yml file, and typing the status or restart commands.
Would I migrate to Portainer again? I’m not sure. But I’m willing to run with it for another six months and see how my perspective changes.
Heimdall Container Configuration
Let’s configure a new Heimdall instance within Portainer.
The specific steps
All of these steps are as of Portainer version 2.1.1 in spring 2021. Some of these settings may look dissimilar in different versions, though I would be surprised if they differed significantly.
- Create a persistent data directory for Heimdall. In my case, that command will be
- Login to your Portainer instance.
- Navigate to your containers environment. In my case, that’s in the
localenvironment, then Containers tab.
- Click the “Add container” button.
- Begin filling out the below fields.
heimdall(or whatever you want to call it. Since will have only one, this nonspecific name is fine.)
- Registry: GitHub Container Registry
I prefer to pin my images to a specific version, but you can use whatever version or level of flexibility you prefer.
- Click the “Publish a new network port” button.
- Add TCP port mappings for
- Click the “Advanced container settings” tab.
- Click the “Volumes” tab.
- Click the “Map additional volume” button.
- Add a bind volume mapping of
- Click the Env tab and add three environment variables:
PUID=123(fill in the correct uid for your preferred user)
PGID=456(fill in the current gid for your preferred group)
TZ=America/Detroit(fill in the timezone code for your preferred timezone)
- Click the “Restart policy” tab.
- Click the “Unless Stopped” button (or whatever your preferred policy is).
- Click the “Deploy the container” button.
Give this a few minutes, and your container should not be booted. Then, navigate to your system on port 80, and you should be looking at Heimdall.
Heimdall Application Configuration
At this point, you can begin adding annotated bookmarks to wherever you’d like. In my case, that’s my local services.
Techno Tim has a wonderful video about setting up Heimdall itself. I’ll refer you to his video for most of the application configuration and usage.
One thing I appreciate about Heimdall is the list of preprogrammed services. Just about every service I have is known to Heimdall. At a minimum, that means I don’t need to go find an image to represent it. But a couple of them, like Plex and Portainer, show additional interesting information.
Fix Background Image File Size Limit
I ran into the background image file size limit problem that Techno Tim describes in his video.
- Ensure Heimdall has booted at least once so that its default configuration files have been placed into its storage directory.
- Add one line :
upload_max_filesize = 30M.
- Save the file.
- Bounce back over to Portainer and restart the container.
Overall I’m happy with my Portainer and Heimdall setup. As mentioned earlier, whether I am still using them six months from now is a different question. Neither is necessarily an improvement over text files and bookmarks, but there are some upsides. Testing them is the only way to decide.
Big thanks to Techno Tim for the awareness of Heimdall, the great video tutorial, and the image file fix.