Skip to content

Hosting ​

The launcher only needs static files served over HTTPS. Nothing runs on the host besides a web server; instances are built on the machine that publishes them.

Site layout ​

One folder is served as the site root:

index.html                  # downloads page, written by `potato publish-launcher`
launcher/<os>/launcher.exe  # launcher builds
launcher/<os>/version.txt
launcher/icon.png           # launcher icon, for the downloads page
data/instance_manifest.json # the instance list launchers read
data/instances/<id>/meta.json
data/instances/<id>/publish.json
data/history/<id>/...
data/objects/<ab>/<sha1>    # every stored file, named by its sha1

Instance repos publish into data/ (their [publish] target), and launcher builds are published to the site root.

Docker Compose ​

Requirements

  • A Linux server with a public IP address
  • A domain name
  • Docker + Docker Compose plugin installed
  1. Download docker-compose.yml and .env.example from the repository:
bash
mkdir potato-site && cd potato-site
wget https://raw.githubusercontent.com/Petr1Furious/potato-launcher/refs/heads/master/docker-compose.yml
wget -O .env https://raw.githubusercontent.com/Petr1Furious/potato-launcher/refs/heads/master/.env.example
  1. Edit .env:
  • SITE_DIR: The folder to serve. Default: ./site
  • PORT: Host port nginx listens on. Default: 8000
  • CONTAINER_NAME_PREFIX: Prefix for Docker container names. Default: potato-launcher
  1. Start it:
bash
docker compose up -d
  1. Put a reverse proxy with TLS in front of it (Caddy, Traefik, or nginx with Certbot) and point it at http://127.0.0.1:<PORT>.

If you don't publish your own launcher, the main page of the site explains how to add your instance list to Potato Launcher, with a Copy button for its URL. Once you run potato publish-launcher, the downloads page replaces it and shows the same URL below the downloads.

The nginx config serves data/objects/ with immutable cache headers and the manifests without caching. It also maps the URLs that legacy launchers use to update themselves (/api/v1/launchers/... and /version_<os>.txt) onto launcher/.

Any other static web server works too, but without the URL mapping, older launchers stop updating themselves.

Publish targets ​

potato writes to the site folder through one of these targets:

TargetExampleNotes
Local folderfile:///srv/potato/site/dataFor publishing on the host itself
SSHrsync://user@host[:port]/srv/potato/site/dataNeeds rsync and ssh locally, and flock on the host
S3s3://bucket/prefix/dataS3, R2 or any S3-compatible storage

Credentials come from the usual places: your SSH config and agent for rsync://, and AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION and AWS_ENDPOINT (or ~/.aws) for s3://. With S3, serve the bucket through any HTTPS front, like a public bucket URL or a CDN.

Every command that writes to storage takes a lock, so two people publishing at once can't break the instance list. Ctrl-C releases the lock.

WARNING

If potato crashes while publishing to S3, the lock may become stuck. Delete .potato-lock from the bucket to release it.