Project OWNOpen Web Node
GitHub

03Hosting

Apps

Project OWN (Open Web Node) runs apps in two ways. App sites run your own code, such as a Node.js, Python or Ruby app, and keep it running. The app catalogue installs ready-made open-source apps, such as Nextcloud or Immich, with one click. This page covers both, plus Git deploys and one-click PHP apps.

Which one do you need?

You want toUse
Run your own Node.js, Python, Ruby, Bun, Deno, Go or Java app, or a botAn app site, from Sites → Add a site
Install WordPress, Joomla, MediaWiki, Nextcloud, Drupal or Matomo as PHPA one-click PHP app, on a PHP site's page
Install a ready-made app such as Immich, Vaultwarden or a Minecraft serverThe app catalogue, on the Apps page
Run a Docker app of your own, from a compose file or an imageYour own app, on the Apps page
Put a site in front of a program you already runA forward

App sites and their versions

An app site runs your code as the site's own Linux user, restarts it if it stops, and puts the site, with HTTPS, in front of it. There are eight kinds, each with a start command filled in for you:

KindVersionsStarts with
Node.js app20, 22 or 24, or the server's own Node.js 22npm start
Python app3.11 to 3.14, or the server's own Python 3python app.py
Ruby app3.3, 3.4 or 4.0, or the server's own Rubybundle exec puma -b tcp://127.0.0.1:$PORT
Bun appBun 1bun run start
Deno appDeno 2deno task start
Go app1.26 or 1.27, the two newest./app
Java app17, 21 or 25 (Eclipse Temurin)java -jar app.jar
Any commandAnything the server can run./start.sh

That covers Express, Next.js, NestJS, Django, FastAPI, Rails, Sinatra, Elysia, Spring Boot and the like.

Each version is an official build, downloaded the first time a site needs it, checked against its published SHA-256, and kept where only root can change it. Sites on the same version share it. Node.js, Python and Ruby can also run on the server's own packages, from Packages.

Ruby

Ruby has no official builds for Linux, so the version a site picks (3.3, 3.4 or 4.0) is built on the server from ruby-lang.org's official source. The source is checked against its published SHA-256 and compiled as the unprivileged nobody user, once for every site that uses that version. The first time takes 5 to 15 minutes. Or choose the server's own Ruby package instead.

  • Each Ruby site keeps its gems in its own folder (GEM_HOME), so bundle install needs no root, and gems with native parts, such as Puma, compile.
  • Rails and Rack apps run in production (RAILS_ENV and RACK_ENV), with a secret key (SECRET_KEY_BASE) made for each site.
  • It starts with bundle exec puma -b tcp://127.0.0.1:$PORT unless you change it; bin/rails server works too.
  • A Rails app deploys from Git with the Rails quick settings: see A Rails app from Git.

Add an app site

  1. Open Sites and click Add a site. Under Which domain?, type the domain. (For a bot with no website, see Bots and workers.)
  2. Under What kind of site?, pick the kind, such as Node.js app.
  3. Choose the Version and check the Start command. Tick Create a database for this app if it needs one: its password is shown once at the end, for the app's settings.
  4. Check the summary under Ready to add and click Add the site.

The site is there, but your code isn't yet. Deploy it from Git, or upload it over SFTP and click Restart.

Listen on the right port

Each app gets a private port between 30000 and 39999, in the PORT setting. A website must listen on 127.0.0.1 and that port; the site forwards visitors to it, with HTTPS in front and WebSockets included.

KindHow the app finds its port
Node.js, Bunprocess.env.PORT
Python$PORT, for example gunicorn --bind 127.0.0.1:$PORT app:app
Ruby$PORT, for example bundle exec puma -b tcp://127.0.0.1:$PORT
DenoDeno.env.get("PORT")
Go, any command$PORT
Java$PORT (server.port=${PORT} for Spring Boot)

An app that listens on every address instead still can't be reached directly: the firewall blocks its port, so visitors only get in through its site.

Running, stopping and switching versions

Each app site's page has a card for its app. It shows whether the app is Running (with how long, its memory and how often it restarted), Starting, Stopped after errors or Not running.

  • Version: switching restarts the app on the new version. A Python site's environment is made again, so deploy again to put its packages back.
  • Start command: change it and click Save and restart.
  • Restart and Stop.
  • Log: what the app printed. Look here first when it won't start.
  • Settings: its environment variables, below.

The app runs as the site's own Linux user, in a locked-down service that can write only to its own folder, with a private temporary folder and no access to devices or home folders. It restarts by itself if it stops, and after each deploy.

Settings (environment variables)

Apps read their settings, such as passwords and API keys, from environment variables. Click Settings on the app's card and write one per line, as NAME=value:

DB_PASSWORD=the-password-shown-once
BOT_TOKEN=paste-it-here

Click Save and restart. The app reads them as environment variables, such as process.env.DB_PASSWORD or os.environ["DB_PASSWORD"]. Lines starting with # are skipped.

  • PORT, HOST, HOME and PATH are set by Project OWN.
  • Settings are kept in a file only root can read, and handed to the app when it starts. They're never put in the panel's own data or the activity log (the log only says how many there were).
  • Viewing or changing them needs manage access to the site.

Bots and workers

Some apps have no website: a Discord or Telegram bot, or a queue worker. Add one as an app site with no domain:

  1. Sites → Add a site. Tick It has no website: a bot or a worker. The domain becomes a short Name: letters, digits and -, such as mybot.
  2. Pick its kind, such as Python app, and its start command, such as python bot.py. A worker needs no port.
  3. Add it, then put its token in Settings.

It runs, restarts and deploys from Git like any app, with no domain, DNS check or certificate.

Deploy from Git

Any site with files (PHP, static and app sites) can deploy from GitHub, GitLab, Gitea, Forgejo or any Git server. Each deploy goes into a fresh release folder and the site switches over in one step, so visitors never see a half-finished site, and you can roll back with one click.

Connect a repository

  1. Open the site. In Deploy from Git, open Connect a repository.
  2. Repository: the SSH address (git@github.com:you/app.git) works for private repositories, with a deploy key. Public ones can use https://.
  3. Branch: main unless you change it.
  4. Quick settings fill in the rest, and match the kind of site: Laravel, WordPress, a Built front-end (dist) or Plain files for a PHP or static site; Rails or Sinatra or Rack for a Ruby app (Rails, below); Django or Flask or FastAPI for a Python app; a Node.js, Bun or Go app. Or set them yourself:
    • Folder the site serves: inside the repository, such as public (Laravel) or dist (a built front-end). Empty means the top folder.
    • Build commands: one per line, run in the new release as the site's own user, never as root. If one fails, the deploy stops and the site isn't changed.
    • Kept between deploys: files and folders that aren't in Git and must survive each deploy, such as .env or uploads.
  5. Leave Deploy when the branch gets a push ticked to deploy on every push (it needs the webhook, below). Click Connect the repository.
  6. For a private repository, add the deploy key it shows (below). Then click Deploy now.

Typical build commands:

composer install --no-dev --optimize-autoloader
php artisan migrate --force

For apps: npm ci and npm run build for Node.js, pip install -r requirements.txt for Python (into the site's own environment), bundle install for Ruby. A Go app is built with go build -o app ..

Kept files such as .env or wp-config.php hold the server's own settings and never come from Git. Open the site's Deploy from Git, then Kept files, and Edit one: what you save is used by the next deploy, and can be written before the first one. They're readable by the site's user and the web server only, and only their names go in the activity log.

An app's build commands see the app's own settings (its environment variables, such as DATABASE_URL or SECRET_KEY_BASE), as the app does, so migrations reach its database. They're handed to the build on its standard input, never on a command line, where other users on the server could read them.

A Rails app from Git

Make a Ruby site (Sites → Add a site → Ruby app), connect its repository, and pick Rails in the quick settings. A new Rails app, from rails new or OWN DevKit's Rails template, then runs as it is:

bundle config set --local without 'development test'
bundle install
bin/rails assets:precompile
bin/rails db:prepare
  • storage is kept between deploys: Rails keeps its SQLite databases (storage/production.sqlite3 and the cache, queue and cable ones) and uploads there.
  • The site's own secret key (SECRET_KEY_BASE) is there for the build and the app, so config/master.key stays off the server and out of Git.
  • To use PostgreSQL or MariaDB instead of SQLite (with the pg or mysql2 gem in the Gemfile), tick Create a database for this app when you add the site (PostgreSQL is the default for Ruby and Python apps), or make one in Databases. Add the DATABASE_URL it shows to the app's settings, such as postgresql://user:password@127.0.0.1:5432/name (for MariaDB, mysql2://user:password@127.0.0.1/name); db:prepare sets it up on the next deploy.
  • Background jobs (Solid Queue) run inside Puma when you add SOLID_QUEUE_IN_PUMA=1 to the app's settings.

The deploy key (private repositories)

Each site has its own read-only deploy key. Open Deploy key (for private repositories), copy it, and add it to the repository. On GitHub: the repository's Settings, Deploy keys, Add deploy key. Leave "Allow write access" off.

Deploy on every push

Open Deploy on every push (webhook) on the site's page. It shows a Payload URL and a Secret.

  • GitHub: the repository's Settings, Webhooks, Add webhook. Paste both, choose content type application/json and just the push event. Since the panel's certificate is its own for now, choose "Disable SSL verification"; the secret still proves each request is genuine.
  • GitLab: Settings, Webhooks, with the secret as the "Secret token".
  • Gitea and Forgejo: Settings, Webhooks.

Webhooks are accepted only when signed with the site's secret, and only a push to the connected branch deploys. Refused webhooks go in the activity log. The Git server must be able to reach the panel; if the panel is open only to Tailscale, deploy from CI instead.

Deploy from CI

Make an API token with deploy access to the site, then have your CI call:

curl -X POST -H "Authorization: Bearer own_..." https://your-server:8443/api/sites/SITE-ID/deploy

The site's ID is in its address in the panel (#/site/SITE-ID). The panel's certificate is its own, not from a public authority, so your CI has to be told to trust it.

Releases and rollback

  • The last five releases are kept. Open Releases and rollback and click Use this one next to a release: the site switches to it at once. "before Git" holds the files from before the first deploy.
  • Recent deploys lists each deploy, who started it, the commit and whether it worked.
  • For app sites, a deploy restarts the app on the new code. If the new version won't start, the site goes back to the release that worked.
  • The .git folder is removed from each release, so a site never serves its history.
  • Change settings edits the above; Disconnect stops deploys and the webhook, and the site keeps its current files.

One-click PHP apps

Popular PHP software, installed into an empty PHP site: the official release, checked against a pinned SHA-256, with a database made for you.

  1. Add a PHP site and leave its folder empty.
  2. On its page, in Install an app, click Install under the app you want.
  3. Enter the Site title (and, where asked, the Admin email) and click Install.
  4. Save the sign-in shown: it isn't shown again. Then get the site a free certificate, so you sign in over HTTPS.
AppWhat you get
WordPress, Joomla, MediaWiki, NextcloudInstalled completely, with an admin account (user admin) and its password, shown once.
Drupal, MatomoUnpacked with the database ready. Finish in the browser: the database details are shown once, for its installer.

Installers get their passwords on standard input, never on a command line, where other users on the server could see them. Afterwards the card says which app the site runs; update it from the app's own admin pages. Its Optimize tune-ups start switched on.

The app catalogue

Open Apps for popular open-source apps, each installed with one click. Each gets its own address with HTTPS, like any site.

AppWhat it's forLeast memory
ImmichPhoto and video backup from your phone4 GB
NextcloudFiles, calendar and contacts1.5 GB
OnlyOffice DocsDocuments, spreadsheets and slides in the browser2 GB
Paperless-ngxA searchable archive of scanned papers2 GB
JellyfinYour films, shows and music1.5 GB
VS Code in the browser (code-server)The VS Code editor, from any browser1 GB
ForgejoGit hosting for your code1 GB
n8nWorkflow automation2 GB
VaultwardenPasswords, with the Bitwarden apps512 MB
Uptime KumaAlerts when a site or service goes down768 MB
Roundcube webmailWebmail for the mailboxes on this server (see Email)768 MB
Minecraft: Java EditionA game server for PCs and Macs2 GB
Minecraft: Bedrock EditionA game server for phones, tablets, Windows and consoles1 GB
Game server (LinuxGSM)Over a hundred dedicated game serversvaries
Riftline relayLower ping in online games, with the Riftline app for Windows512 MB

Each card shows the memory and disk the app needs. The panel warns when the server has too little memory (you can still Install anyway), and won't fill the disk: it keeps 1 GB spare.

Install an app

  1. On Apps, click Install on the app's card.
  2. Under Address, enter a domain or subdomain for it, such as photos.example.com, and click Install. The first app also installs Docker.
  3. When it's ready, save any sign-in details shown: they aren't shown again.
  4. Point the address at the server, then click Its site and get a free certificate.

Some apps need something first, or allow only one per server. The card then says Not yet: and why, such as webmail needing email. Apps already installed show Install another.

Updating and removing apps

Installed apps are listed at the top of Apps, with Backups, Log and Remove, and Console or Relay code for games.

  • Apps run at pinned versions. Newer ones arrive with Project OWN's updates, and you choose when to apply them: click Update to the new version. It keeps its data and passwords, and is offline for a minute or two. If the download fails, nothing changes. A backup first is wise.
  • Remove frees the disk its program took. Leave Keep its data on the server ticked to keep its data (in /srv/own/apps/ID), or untick it to delete everything, which can't be undone.
  • Apps run in Docker and listen only inside the server: visitors reach them through their own site.
  • An app can be given limits (CPU, memory and processes, for all its containers together) on its site's page. See Limits.

Game servers

Game servers have no site. Players connect to the server's address and the game's port, which the firewall opens while the server exists and closes when it's removed.

  • Minecraft: Java Edition (Paper, Vanilla or Fabric) on port 25565, and Minecraft: Bedrock Edition on port 19132, or the next free one. You pick the game mode, difficulty, memory, server name, version and who may join (only invited players, by default), and accept Minecraft's EULA when installing.
  • Game server (LinuxGSM) offers over a hundred dedicated servers from LinuxGSM, picked from a searchable list: Valheim, Counter-Strike 2, Rust, Palworld, Project Zomboid, Satisfactory, Factorio, ARK, Garry's Mod, Team Fortress 2, Luanti and more. LinuxGSM downloads the game and keeps it up to date. Once it runs, Project OWN asks the game which ports it uses and opens exactly those. One of each game per server. Big games want 8 to 16 GB of memory and tens of GB of disk. Games that need a Steam account to download aren't offered.
  • Riftline relay gives lower, steadier ping in online games with Riftline, a free Windows app. It opens UDP port 29870 and shows a relay code (starting rift1:) to paste into Riftline's Add relay. Relay code on the Apps page shows it again. Anyone with the code can use the relay, so share it only with friends.

When a game server is ready, the panel shows the address players connect to. On a cloud server, open the game's port in the provider's firewall too; at home behind a router, forward it to the server.

Console sends commands to games that take them, such as list, whitelist add Name, op Name or say Hello (on Bedrock, allowlist add). Each command goes in the activity log.

Community apps

Below the catalogue, Community apps lists templates anyone can add to by pull request, at own-community-apps. Its checks start every app and wait for its page before a template is accepted. Project OWN hasn't checked them like its own catalogue, so they install as your own apps, through the same rules.

Your own Docker apps

Click Your own app on the Apps page.

  1. Paste a Compose file. Or open Start from an image on Docker Hub, enter the Image (pin a version tag rather than latest) and, if it keeps data, Its data folder inside the container, then click Write the compose file.
  2. Give it a Name and an Address, a domain pointed at this server.
  3. Name the Web service that serves the page, and Its port inside the container. Click Install.
services:
  web:
    image: nginx:1.27
    volumes: ["./html:/usr/share/nginx/html:ro"]

Before anything runs, Docker Compose reads the file on the server and Project OWN holds it to strict rules: images only (nothing built), no privileged mode, added capabilities, devices, host network, host processes or IPC, other runtimes, sysctls or relaxed security profiles, and nothing mounted from outside the app's own folder (so never / or the Docker socket). Its own published ports are replaced by one inside the server, behind its site. It updates, backs up and comes back from the recovery kit like the catalogue's apps.

Backups of apps

Apps and game servers are backed up like sites, with their own schedule. See Apps and game servers on the Backups page.

Something wrong or unclear on this page? Open an issue on GitHub.