Перейти к содержимому

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).

Each OkYouIn release is published as these files:

FileWhat it is
okyouin-bundle-<version>.tar.gzthe bundle: install.sh, the okyouin command, the Compose files, VERSION and a copy of the install guide. Unpacks into ./okyouin/
okyouin-images-<version>.tar.zstevery container image, for a host that cannot pull from the registry
okyouin-witness-images-<version>.tar.zstonly what an HA witness runs
SHA256SUMSthe 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:

Terminal window
cd /opt && tar xf okyouin-bundle-<version>.tar.gz && cd okyouin
  1. 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.zst
  2. Install.

    Terminal window
    ./install.sh --images ../okyouin-images-<version>.tar.zst

    The archive is checked against SHA256SUMS before it is loaded.

    The installer asks one question — the first administrator’s username, default admin — and may ask for your sudo password once, to give the master key file to the application’s group.

  3. Copy the login. At the end it prints the console URL, the administrator’s name and generated password. The password is also in .env as INITIAL_ADMIN_PASSWORD; delete that line after your first sign-in.

  4. Copy the master key off the host. secrets/master_key encrypts every stored secret and every backup. Keep a copy somewhere safe, apart from your backups.

  5. Check the services.

    Terminal window
    ./okyouin ps

    Every service should be healthy. The first start migrates the database and can take a minute.

Then continue with First sign-in & first steps.

OptionEffect
--images <file>load the images from this archive instead of pulling them
--dry-runevery check, nothing changed outside ./dry-run/
--no-startwrite the configuration without pulling, loading or starting
--helpthe full help

For unattended installs, set these in the environment of the first run (on a re-run, .env decides):

VariableEffect
INITIAL_ADMIN_USERNAMEthe first administrator; no question is asked
OKYOUIN_HTTPS_PORT, OKYOUIN_HTTP_PORT, OKYOUIN_HTTP_BIND, RADIUS_AUTH_PORT, RADIUS_ACCT_PORT, STUN_PORTpublished ports, when the defaults are taken
HTTPS_PROXY, HTTP_PROXY, NO_PROXYoutbound proxy for the application’s HTTPS calls
OUTGOING_CA_CERTFILEthe CA certificate of a TLS-inspecting proxy (PEM)
EDGE_NET_PREFIXthe internal Docker network prefix (default 10.254.90), if it clashes with one of yours
OKYOUIN_IMAGE_PREFIXpull from your own registry mirror
SKIP_PULL=1use images already loaded on the host
OKYOUIN_MASTER_KEY_FILEinstall with an existing master key, to restore a backup made with it (Backup & restore)

For example:

Terminal window
INITIAL_ADMIN_USERNAME=admin RADIUS_AUTH_PORT=11812 \
./install.sh --images ../okyouin-images-<version>.tar.zst

In the bundle directory:

PathHolds
.env (mode 600)ports, options, the database password and other generated secrets
secrets/master_keythe master key. If it is lost, no backup can be restored and no stored secret read
./okyouinthe 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 ./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.

ProblemWhat to do
install.sh stops at a busy portThe message names the process. Change the port variable or stop that service
docker needs sudoStart 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>
Terminal window
./okyouin uninstall

It 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.