← Back to Stompless All help topics
Running it yourself
You can run Stompless on your own computer in a container. It needs no internet once built, and its web server keeps no logs.
A ready-made image to download. For now, you build it from a copy of the source code.
Before you start
Install Podman or Docker. On a Mac with Podman, run this once:
podman machine init
podman machine start
Build and run
From the Stompless source folder:
podman build -t stompless -f Containerfile .
podman run -d --rm --name stompless -p 127.0.0.1:8080:8080 --read-only --tmpfs /tmp stompless
Using Docker? Replace podman with docker. Then open http://localhost:8080.
The 127.0.0.1 part keeps your copy private to your own computer.
Inside the container the app listens on port 8080. If your host needs another, set the PORT environment variable.
Stop, update or remove
- Stop:
podman stop stompless - Update: get the newer source, build again, stop the old container and run it again.
- Remove: stop it, then
podman rmi stompless
Keep your songs in sight
Your browser stores songs per web address. Another address or port looks like a brand new, empty app, so always use the same one. To move songs between copies, save a backup and import it.
MIDI
Web MIDI works on http://localhost. Browsers generally block it on other plain http:// addresses, so a copy opened from another machine needs HTTPS.
HTTPS and HSTS
The container serves plain HTTP, which is fine on your own machine: browsers treat localhost as secure, so Web MIDI works. If you put it behind your own HTTPS (a reverse proxy, say), you can have it send an HSTS header by starting the container with -e HSTS_MAX_AGE=<seconds>, for example 300 while testing. Leave it unset otherwise; it is off by default, and a plain-HTTP setup should never send it.
Troubleshooting
- Port already in use: stop whatever is using port 8080, or choose another, for example
-p 127.0.0.1:8090:8080. - Podman can’t connect on a Mac: run
podman machine start. - Name already in use: run
podman stop stomplessfirst.