Installing
The install is a Docker Compose file plus an installer script. On Windows it is a file to double-click, which installs Docker itself and shows a window rather than a console; on a Mac it is an app to drag into Applications and open (or the one command); on Linux it is one command. Either way it ends with a setup code and an address, and the first person to sign up with that code owns the server.
What it needs
- Memory: 16 GB of RAM is recommended. It runs five media servers, and Immich alone wants 6-8 GB.
- Disk: about 30 GB for EmberStorm itself, most of it the programs (the container images, near 19 GB), plus room for the media. The installers check for the room before the download starts.
- The internet while installing and updating, to download the images from the GitHub container registry and Docker Hub.
The pieces
docker-compose.yml names a published image and contains no
build: key, so it works on its own in an empty folder for somebody who never cloned
anything. Developers add docker-compose.dev.yml, which puts the build back. The images
are built for linux/amd64 and linux/arm64, because many home servers are a Raspberry Pi, a Synology
box or an Apple silicon Mac.
| Platform | How |
|---|---|
| Windows | EmberStorm.exe (signed), from the latest GitHub release, which checks the signed release and runs its install.ps1 |
| Mac | EmberStorm.dmg, the EmberStorm app, which checks the signed release and runs its install.sh |
| Linux (or a Mac from a terminal) | curl -fsSL .../install.sh | sh |
| Anything with Docker | The compose file alone |
Windows
The Windows installer is aimed at somebody who has never opened a terminal, because that is who a self-hosted media server usually gets given to. It installs Docker Desktop itself, starts it, and leaves desktop, Start menu and start-up shortcuts instead of an address to remember.
The setup file, and the signed release
The download link points at a release asset,
/releases/latest/download/EmberStorm.exe, signed with a code-signing certificate and
attached to the release by hand. (Before it, a .cmd file was the download; it is no longer
on the release.) A release asset is a real download, and the link always follows the newest release.
Every computer release is a signed list of files. A release carries
desktop.json - the setup scripts, the compose file pinning every image by digest, and
EmberStorm.exe, each with its SHA-256 - and desktop.json.sig, signed with the release key,
which lives on a hardware security key and never on a computer. EmberStorm.exe
(cmd/emberstorm-setup) downloads both, checks the signature against the release keys
built into it and every file against the list (internal/desktoprelease), and runs the
checked install.ps1 from that folder, telling it where the checked files are
(SOUNDSTORM_RELEASE_DIR); it takes nothing from anywhere else. A release that does not check
out runs nothing. The installer records the release's serial and refuses an older one. A change on
GitHub that the release key did not sign reaches nobody.
EmberStorm.exe runs an install.ps1 sitting beside it only for a developer, with
EMBERSTORM_LOCAL_INSTALLER=1 set as well as a .git folder there, and the setup
refuses to hand over to the old 0.12 program, which fetched the script from the branch unchecked.
The program starts PowerShell with no window of its own and the setup opens its window straight away; there is no console. The script it runs is a file on disk, never a download piped into PowerShell from memory, which is the classic malware pattern that Windows Defender blocks on sight.
A window, not a console
Numbered steps and coloured boxes made the console legible, but the black window itself put people off. So the setup shows a window of its own (WPF, part of Windows, nothing installed): the four steps ticking off (Getting Docker ready, Preparing the EmberStorm folder, Downloading the media servers, Starting EmberStorm), a status line, a progress bar with a percentage filled from what can be measured (Docker's installer in megabytes, the media servers' download by the bytes each image brings), and at the end the setup code, the address for phones and an Open EmberStorm button. Its questions - where the library goes, the home network, keeping the PC available - are pages of the same window, and all of them come first, before the long download, so nobody returns to find it waiting on a question. The console text survives under "Show details" and in a log file in the temp folder.
A few details of how that window works, because each was learned the hard way:
- One thread, kept painted. The window runs on the setup's own thread, and every place the script waits keeps it repainting; a command that prints nothing for a while runs on a second PowerShell meanwhile, so the window can still be dragged. A compiled helper would be blocked by Smart App Control on exactly these PCs.
- It carries on after a restart. A stop whose cure is a restart (WSL not finished, virtualization off, a new account let into Docker) offers Restart now, and Windows starts the setup once more at the next sign-in, keeping the answers already given. Virtualization off offers a restart straight into the firmware's setup.
- One setup at a time, and a failure offers Try again.
- Shown twice, on purpose. A process started hidden applies "hidden" to the first window it shows, which turned out to be the setup's own window, not the console. The first full run sat on its error screen invisibly.
- No message tells anybody to type a command. A failure offers a button that opens the log file, with EmberStorm's own recent log lines appended and the setup code removed, so it can be sent to whoever helps.
Virtualization, WSL, then Docker
Docker on Windows runs Linux in a virtual machine, so the order of checks matters:
- Is virtualization on? A PC with VT-x or SVM switched off in its firmware cannot
run any of this. The first person to try the installer found out only after half a gigabyte of Docker
had installed, from a Docker error offering to fix it by signing in - which fixes nothing. Now the
installer asks Windows first. The trick is to ask
HypervisorPresentbeforeVirtualizationFirmwareEnabled: once a hypervisor is running, Windows can no longer see the firmware and reports the second as false or blank on a perfectly working PC. When it cannot tell, it assumes yes; refusing a working machine is the worse mistake. - WSL. Docker Desktop runs its engine in WSL2. On a machine without it, Docker
installs and then asks the person to install WSL by hand, as administrator, with a restart. So the
installer runs
wsl --install --no-distributionfirst.--no-distributionskips Ubuntu, a gigabyte and a prompt for a Linux username nobody will use. - Docker Desktop, from Docker's own installer, downloaded over https and checked
as validly signed by Docker - and checked again as administrator, on a copy in a folder only
administrators can change, so nothing can swap the file between the check and the run. It is
elevated for that one step only, with its terms accepted by its installer's own
--accept-license(the setup says so, and links Docker's terms: it is free for personal use and small businesses). Its dashboard is turned off, and its sign-in and survey marked done (DisplayedOnboarding), in Docker's settings file before it is installed, because it launches itself the moment its installer finishes; WSL's welcome window is kept away the same way. On a standard account, the account using EmberStorm is added to Docker's users.
A Docker already on the PC but never opened has not had its terms accepted, and that is the person's to do: before its first start a window says it will ask one thing - click Accept - with one button, I understand (a description alone was not enough: people walked away, leaving setup waiting on a click). Its sign-in and survey are skipped for them as for a new one. Should a Docker window ever appear anyway, the setup says to accept its terms and skip anything else. Downloads then count up ("Downloaded 3 of 12: jellyfin"), and a registry rate limit is retried after 30, 60 and 120 seconds rather than reported as a broken connection.
The home network
A server people can only reach from the computer it runs on is not much use, and two Windows defaults stop phones reaching it:
- Windows makes every new Wi-Fi network Public, and Public lets nothing in.
- The firewall alert for Docker's backend appears during the first start and ticks Private only; anything unticked gets a Block rule, and Block beats Allow.
After starting, Set-LanAccess checks the profile of the network holding the LAN
address. If it is Public, the installer asks whether this is the home network, because
marking a café's network Private is the wrong default. With consent, one elevated step marks it
Private, adds an Allow rule for the port on Private only, and takes Private out of Docker's Block
rules. A work (domain) network is left alone. Docker's backend is allowed only on EmberStorm's
port, on private networks. The same question is asked when EmberStorm starts on a network Windows
calls public (a laptop at another house, a new router), once per network.
Keeping it available, and where Docker's data goes
One page asks how the PC should behave as a server: stay awake while plugged in, keep running with the lid closed while plugged in (laptops), and - off unless ticked, with the catch said plainly - sign in to Windows by itself after a restart, since Docker Desktop and so EmberStorm run only once somebody is signed in. That last is Windows' own switch, set in Windows' own sign-in window. Each change is recorded with what was there before, so uninstalling can offer to put it back.
EmberStorm's own data (Docker's disk: the images and the media servers' databases, growing with the library) goes on the library's drive when that is another drive inside the PC, so a small C: does not slowly fill; never on a drive that can be unplugged. It is locked to the person, SYSTEM and administrators.
The installer also works out the computer's LAN address, preferring 192.168., then
10., then 172. (where Docker and WSL put virtual adapters that reach
nothing), and writes it into .env as SOUNDSTORM_TLS_HOSTS. The container
cannot work this out: inside Docker, the only addresses visible are the container's own. On every
launch the address is updated if the old one has gone from every adapter, so a laptop that moves
keeps working. On a Mac or Linux the same rule runs on every install or update, and a small check
(soundstorm-address.sh, from the user's crontab) runs at start-up and every ten
minutes.
One install per computer
The compose project name is fixed, so a second install in a second folder would adopt the first one's containers and point them at an empty library. Both installers check the running container's working folder and refuse, naming the other folder.
Mac: the EmberStorm app
EmberStorm.dmg
on the latest release holds the app, signed with a Developer ID and notarized by Apple. Dragged into
Applications and opened, it asks where the media goes, whether to keep the Mac awake (only if it would
sleep) and, when Docker must be installed, the Mac's password - all before anything starts. It then
downloads the latest release's signed list, checks it against the release keys built into it and every
file against the list, exactly as EmberStorm.exe does, and runs that checked install.sh
with no terminal, showing steps and a percentage, and ending on Open EmberStorm. A release that does
not check out runs nothing. Opened again, it starts Docker and EmberStorm and opens the browser; a cloud
in the menu bar has Open, Update, Uninstall and Update by itself at night. The one question it cannot ask up front is macOS's own, whether a
newly installed Docker may find devices on the local network (click Allow), asked as Docker first
starts. The app's code is mac/; it is built and signed on a Mac.
Mac and Linux from a terminal
curl -fsSL https://raw.githubusercontent.com/GabrielHollberg/emberstorm/main/install.sh | sh
install.sh is written for /bin/sh, not bash, because a stock Debian's
/bin/sh is dash - and the cheap home server it is aimed at is exactly where a bash-only
script would fail. It downloads the compose file into a soundstorm folder, picks a free
port, writes .env with owner-only permissions (it holds the setup code and any Tailscale
key), starts the stack and waits until it answers, showing numbered steps and one download bar. Every
failure says what to do next. An install counts as installed only once EmberStorm has started and
answered (SOUNDSTORM_INSTALLED in .env), so a first setup stopped part way
carries on as a first setup, keeping the .env it made.
A first install by this command rests on https and the project's GitHub account. Once installed,
the install folder holds emberstorm-update.sh, which carries the release keys and checks
the signed list and every file before running anything (OpenSSL 3); the same command run again on such
a machine hands over to it. It also leaves emberstorm-uninstall.sh, and on a Linux desktop
an EmberStorm entry in the app menu (with Uninstall in its right-click menu). On a laptop, or a desktop
asked to stay awake, a small service holds the system's block on sleep while on mains power only
(emberstorm-awake.service), so no desktop's own sleep or lid settings are changed. Where
the system has no cron, the setup installs it, for the address check and the night's update.
Docker is set up as part of the install, the computer's password asked for once
(sudo reads it from the terminal though the script arrives through a pipe). On Linux it is plain
Docker, as on the box: Docker's own installer (get.docker.com, which knows Debian, Ubuntu,
Fedora, Raspberry Pi OS and the rest), its output kept in a log unless it fails, the service started
at boot, and the account added to the docker group - used at once through
sg docker, since a group only takes effect at the next login (before this, that state
read as "Docker is not running"). Where Docker's installer does not know the system by name - Arch,
openSUSE, Alpine, Linux Mint and other Ubuntu-based ones - Docker comes from the system's own package
manager instead (apt, dnf, pacman, zypper or apk). Tested on fresh Debian 13, Ubuntu 24.04, Fedora 44,
Arch and Linux Mint machines. On a Mac it is Docker Desktop: its own command-line install with
--accept-license --user, then started in the background and waited for. The installer does
not change Docker Desktop's settings on a Mac (macOS guards that folder, and asking for permission
ended the setup), so a Docker window may open on its first start - click Skip; no account is needed.
A Docker already installed but stopped is started rather than reported.
| Option | What it does |
|---|---|
--library PATH | Keep the media library somewhere else, such as an external drive |
--no-https | Plain http only (https with a real certificate is the default) |
--remote | Reach it from anywhere over the internet (off by default; also a switch in the app) |
--tailscale | Also reach it away from home over a tailnet |
--export PATH, --import PATH | Move to another computer |
--uninstall | Remove it, keeping the library |
On macOS and Linux with Avahi, the computer's .local name is offered as well as the IP
address. Windows prints only the IP address: it does not reliably advertise its name over mDNS, and an
earlier version that "verified" the name by resolving it on the same machine proved nothing - a machine
always answers for its own name.
Compose alone
Anybody can put the compose file in a folder and run docker compose up -d. Two
differences from the installers: with no installer to generate a setup code, EmberStorm makes one up at
each start and writes it to its log until an account exists; and https stays off by default, because
without an installer nothing records the LAN address that the secure name would point at.
The setup code and the first sign-up
Sign-up is a first-boot action. It closes the moment the first account exists, and that account is the owner; after that only the owner adds people. Until then, whoever reaches the port could claim the server, so the first sign-up needs a setup code.
The installers generate it into .env (SOUNDSTORM_SETUP_CODE, eighty random
bits) and open the browser at an address carrying it; the page removes it from the address once it is
staying, so it is not left in history. Because it can still go astray - a closed tab, the desktop icon
opened instead - it is also shown in full at the end of setup, grouped in fours (case, spaces and dashes
are ignored), and the desktop icon opens with it while no account exists. The sign-up form says where
to look: the setup window, then .env in Notepad, then, for compose alone, the logs.
A real bug lived here for a while: the page stripped the code from the address, then moved itself to the secure https name carrying an address that no longer had it. On a fresh install the first screen asked for a code the person had never seen. The code is now only removed on paths that stay put.
Where the library lives
The installer creates library/ in the install folder with a subfolder per shelf:
music, movies, tv, audiobooks, ebooks,
documents and pictures, named for what people call things. To keep it on
another drive, run the installer with -Library (Windows; or the Start menu's Move
EmberStorm library) or --library. That writes SOUNDSTORM_LIBRARY_PATH, which
every mount in the compose file reads, so the shelves cannot drift apart.
It is an installer option and not an app setting because which folders a container can see is fixed when it starts; changing it from inside would mean EmberStorm driving Docker. The installer never moves existing media - it says where the old files are.
The starter library
A fresh install arrives with one item per stocked shelf, about 17MB embedded in the binary and unpacked once into empty shelves: a public-domain ebook from Wikisource, a public-domain LibriVox audiobook, and a CC0 recording of a Goldberg Variations aria. It answers the question a first run has to answer - does each kind of media work? - and the credits point people at LibriVox and Wikisource.
- Bundled, not downloaded: fetching on install would spend donated services' bandwidth on every installation, and the first run works without internet.
- No film. A Blender open movie was bundled for exactly one commit; it was 60% of the bundle. Everybody already has a film; the credit points at Blender's free films instead.
- Once, ever. A flag in the state file records that it has unpacked, so someone
who deletes the samples does not get them back at the next restart.
SOUNDSTORM_STARTER_LIBRARY=falseturns it off entirely.
After installing
From another device, use the computer's address with the port, for example
http://192.168.0.50:8099; Settings → Use on your phone or TV shows it with a Copy
button. Within a minute the server also gets a secure https://<id>.home.emberstorm.app:8099
name with a real certificate, and pages move there by themselves once they have checked they can reach
it. On phones and TVs, the EmberStorm apps find the server on the home network by themselves. See
Away from home for how the name works.