Install on your own Linux host
On a Linux host you already run, OkYouIn installs from a small release
bundle: a Docker Compose file, an installer (install.sh) and the ./okyouin
operations command. You build nothing. The installer checks the host, generates
every secret, gets the container images and starts the stack.
Check the requirements first: a 64-bit
Linux with systemd, Docker Engine 24.0+ with the compose plugin 2.20+, 2 GiB RAM,
3 GiB free disk, an NTP-synchronised clock and a time zone set by name. Run the
installer as root or as a user in the docker group (a user just added to the
group must log in again first).
Get the release
Section titled “Get the release”Each OkYouIn release is published as these files:
| File | What it is |
|---|---|
okyouin-bundle-<version>.tar.gz | the bundle: install.sh, the okyouin command, the Compose files, VERSION and a copy of the install guide. Unpacks into ./okyouin/ |
okyouin-images-<version>.tar.zst | every container image, for a host that cannot pull from the registry |
okyouin-witness-images-<version>.tar.zst | only what an HA witness runs |
SHA256SUMS | the checksums of the files above |
With registry access the bundle alone is enough: the images are pulled from the
public container registry. A host without registry access installs from the image
archive instead; it is larger than a release page takes and is distributed
separately — ask support if you do not have it. Copy the bundle, the
image archive and SHA256SUMS to the host together, for example into /opt.
Then unpack the bundle:
cd /opt && tar xf okyouin-bundle-<version>.tar.gz && cd okyouinInstall
Section titled “Install”-
Optionally, rehearse. A dry run performs every check and changes nothing (exit code 2 means a real run would have stopped at a check):
Terminal window ./install.sh --dry-run --images ../okyouin-images-<version>.tar.zstTerminal window ./install.sh --dry-run -
Install.
Terminal window ./install.sh --images ../okyouin-images-<version>.tar.zstThe archive is checked against
SHA256SUMSbefore it is loaded.Terminal window ./install.shThe installer asks one question — the first administrator’s username, default
admin— and may ask for yoursudopassword once, to give the master key file to the application’s group. -
Copy the login. At the end it prints the console URL, the administrator’s name and generated password. The password is also in
.envasINITIAL_ADMIN_PASSWORD; delete that line after your first sign-in. -
Copy the master key off the host.
secrets/master_keyencrypts every stored secret and every backup. Keep a copy somewhere safe, apart from your backups. -
Check the services.
Terminal window ./okyouin psEvery service should be
healthy. The first start migrates the database and can take a minute.
Then continue with First sign-in & first steps.
Installer options
Section titled “Installer options”| Option | Effect |
|---|---|
--images <file> | load the images from this archive instead of pulling them |
--dry-run | every check, nothing changed outside ./dry-run/ |
--no-start | write the configuration without pulling, loading or starting |
--help | the full help |
For unattended installs, set these in the environment of the first run (on a
re-run, .env decides):
| Variable | Effect |
|---|---|
INITIAL_ADMIN_USERNAME | the first administrator; no question is asked |
OKYOUIN_HTTPS_PORT, OKYOUIN_HTTP_PORT, OKYOUIN_HTTP_BIND, RADIUS_AUTH_PORT, RADIUS_ACCT_PORT, STUN_PORT | published ports, when the defaults are taken |
HTTPS_PROXY, HTTP_PROXY, NO_PROXY | outbound proxy for the application’s HTTPS calls |
OUTGOING_CA_CERTFILE | the CA certificate of a TLS-inspecting proxy (PEM) |
EDGE_NET_PREFIX | the internal Docker network prefix (default 10.254.90), if it clashes with one of yours |
OKYOUIN_IMAGE_PREFIX | pull from your own registry mirror |
SKIP_PULL=1 | use images already loaded on the host |
OKYOUIN_MASTER_KEY_FILE | install with an existing master key, to restore a backup made with it (Backup & restore) |
For example:
INITIAL_ADMIN_USERNAME=admin RADIUS_AUTH_PORT=11812 \ ./install.sh --images ../okyouin-images-<version>.tar.zstWhat the installer leaves behind
Section titled “What the installer leaves behind”In the bundle directory:
| Path | Holds |
|---|---|
.env (mode 600) | ports, options, the database password and other generated secrets |
secrets/master_key | the master key. If it is lost, no backup can be restored and no stored secret read |
./okyouin | the operations command — ./okyouin help lists everything |
The database, the backups and the TLS certificate live in Docker volumes of the
project okyouin. Run every ./okyouin command from this directory.
Re-running and repairing
Section titled “Re-running and repairing”Re-running ./install.sh is safe: it never regenerates a secret, adds only a
missing one, repairs file modes and starts the stack. It refuses — with nothing
changed — a .env without its master key, a master key without its .env, and a
host that already holds an OkYouIn database installed from another directory.
An install that stopped before writing anything (a busy port, images it cannot
get) leaves nothing behind. One that stopped later says This install is NOT
finished; run ./install.sh again to continue it.
| Problem | What to do |
|---|---|
install.sh stops at a busy port | The message names the process. Change the port variable or stop that service |
docker needs sudo | Start a new login session after joining the docker group |
| ”These images are not on this host” | Install from the image archive with --images |
secrets/master_key is mode 644 (a warning) | Run ./install.sh --no-start again from a terminal — it asks for sudo once — or as root |
A service is unhealthy | ./okyouin logs --tail 100 <service> |
Uninstalling
Section titled “Uninstalling”./okyouin uninstallIt shows what goes and what stays and asks you to type DELETE-ALL-DATA. It
removes the containers, volumes (database, backups, certificate), OkYouIn’s
images, .env and secrets/ — including the master key. Export your backups
and copy the master key first if you may want them. --keep-data removes only
the containers, networks and images; ./install.sh then brings the installation
back as it was.