Skip to content

Single Instance

Stand up Somewear Core on a single Linux server, running Postgres, Redis, and the Core service as Docker containers. It’s the fastest path to a working self-hosted deployment, and a good fit for a lightweight, low-maintenance install.

What you’ll need

  • One server running Linux, with:
    • 4 CPU cores
    • 16 GB RAM
    • 40 GB disk storage
  • An API token issued by Somewear Labs
  • Root or sudo access on the server

Architecture

Single Linux host running Postgres, Redis, and the Somewear Core service as Docker containers

Install the Pilot CLI

Run the installation script on your server:

curl -sSL https://get.somewear.app/core/install.sh | bash

This installs the Pilot CLI, creates a pilot system user to run it, and lays down the configuration files Pilot needs.

Initialize the configuration

  1. Switch to the pilot user:

    sudo su - pilot
  2. Run the init command:

    pilot init

pilot init is interactive — enter the API key from Somewear Labs, the DNS address for this install, and credentials for a system admin account. A run looks like this:

Creating new Pilot configuration file at ~/.config/somewear/pilot.properties...
Enter a value for each property
api-key (Pilot API key provided by Somewear Labs): <REDACTED_API_TOKEN>
api-address (Web address for the api server. i.e. api.somewear.co): somewear.example.org
Configuration file created.
Creating new Somewear core configuration file at ~/.somewear/pilot/core/somewear.conf...
Enter a value for each property
WEB_APP_URL (Web address URL for the server. i.e. https://api.somewear.co): https://somewear.example.org
SOMEWEAR_IDENTITIES_TO_CREATE (Somewear system admin account (formatted as username:password)): somewear:P@ssw0rd
Configuration file created.

Generate the Docker Compose file

Run:

pilot node docker-prepare

This generates the docker-compose.yml file Docker needs to run the Somewear Core service.

Start the services

Run:

docker compose up -d

Docker starts Postgres and Redis first, then the Somewear Core service — all as containers on this one host.

Verify the install

Follow the Core service’s container logs to confirm it started cleanly:

docker logs -f somewear-core

Once the logs settle with no errors, sign in at the WEB_APP_URL you set during pilot init, using the admin credentials from SOMEWEAR_IDENTITIES_TO_CREATE.