Skip to content
egaboshPublic

About

Debian based Distri for Servers

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SymbiOS

Debian-based distribution for self-hosted servers. SymbiOS turns a plain Debian machine into a managed, containerized home/server platform: a reverse proxy with automatic TLS, single sign-on with two-factor auth, an LDAP directory, and a web UI to manage it all. On top of the base system you can drop in your own services through the services/ subdirectory.

The name is inspired by the Trill symbionts from Star Trek: Deep Space Nine - sentient beings that join with humanoid hosts in a mutualistic symbiosis. Neither can survive without the other; the host gains the memories and experiences of all previous hosts, while the symbiont gains a new life. Much like the Dax symbiont passing through Curzon, Jadzia, and Ezri, the services in SymbiOS rely on each other - Traefik, Authelia, LDAP, Docker, the WebUI - each one stronger together than alone. SymbiOS stands for Symbiosis + OS.


Table of contents

  1. What SymbiOS does
  2. Architecture overview
  3. Repository layout
  4. The base services
  5. Domains, TLS and certificates
  6. External services and network access
  7. Networking and Traefik routing
  8. Installation
  9. Managing the system (WebUI / SSH)
  10. Adding your own service
  11. User-uploaded playbooks
  12. Naming conventions
  13. Feature plugin system
  14. Third-party software
  15. License
  16. Disclaimer

More documentation: DOCS.md (index), INSTALL.md (install steps), FEATURES.md (settings reference), SCRIPTS.md (CLI reference), playbooks.md (playbook authoring), SECURITY.md (threat model).


1. What SymbiOS does

SymbiOS provisions and wires together a set of core services so that adding a new web app is mostly "write one playbook and drop it in services/":

Concern Provided by
Reverse proxy / TLS Traefik (file-provider based routing)
Authentication Authelia (SSO, 2FA, OpenID Connect)
User directory OpenLDAP
Certificates Let's Encrypt
Dynamic DNS deSEC (dedyn.io) client
Management UI symbios-ui (Django web interface)
App isolation Docker, one compose stack per service

Everything is driven by Ansible playbooks. There is no long-running agent: the web UI runs playbooks on the host directly over SSH through a minimal audit-logging executor (symbios-exec.sh). The WebUI container has the playbook sources mounted read-only at /repo; it parses their machine-readable # docs: blocks locally, resolves every status/action/log command itself, and ships only the concrete command to the host (no host-side verb dispatch, no secrets leave the host). The webui's SSH key is a normal root key - trusted admins operate the host, so the executor imposes no command allow-list. No extra daemon is required.


2. Architecture overview

                         Internet / LAN
                              |
                        +-----+------+
                        |   Traefik   |   :80 -> redirect to :443
                        | (reverse    |   :443 https  (automatic TLS)
                        |  proxy)     |   :636 ldaps (local mode only)
                        +-----+------+
                              |
        -------------------------------------------------------------
        |              |               |                |          |
   +----v----+   +-----v------+   +----v-----+    +-----v-----+  (your
   | Authelia|   | symbios-ui |   |   LDAP   |    |  services |  services)
   |  (SSO/  |   |  (WebUI)   |   | openldap  |    |  (file    |  attach to
   |  2FA/   |   |            |   | + LAM     |    |  provider |  the traefik
   |  OIDC)  |   |            |   |           |    |  snippets) |  network)
   +---------+   +------------+   +-----------+    +-----------+
        |              |                |
        |              |                |
    +----v--------------v----------------v-----------------------------+
    |  symbios-exec.sh     (audit-logging SSH executor used by the WebUI)   |
    +---------------------------------------------------------------+
        |
   +----v----------------------------+
   |  base-services/*.yml (Ansible)    |
   |  services/*.yml    (Ansible)    |
   +---------------------------------+

Key idea: Traefik does not use the Docker provider and has no access to the Docker socket. Routing is declared as file-provider snippets in /symbios/base-services/traefik/providers/, which Traefik watches at runtime. A service becomes reachable by (a) joining the external symbios_services Docker network and (b) dropping a provider snippet that points a Host(...) rule at the container's IP/port.


3. Repository layout

SymbiOS/
├── install.sh            # Bootstrap: install ansible, clone repo, run base-services
├── inventory.yml         # Template inventory (copied to the host on first install)
├── base-services/        # Core Ansible playbooks (the "Basisservices")
│   ├── *.yml             # One playbook per concern (see section 4)
│   ├── traefik-services.j2   # Template -> /symbios/base-services/traefik/providers/symbios-services.yml
│   ├── authelia-access-control.j2  # Template -> Authelia access_control block
│   └── files/traefik-static.yml.sample # Traefik static config sample (entrypoints, etc.)
├── scripts/              # Host CLI layer (every WebUI action runs one of these)
│   ├── symbios-settings-*.sh # One CLI per settings page (/settings/<slug>/)
│   ├── symbios-inventory.py  # Single writer of inventory.yml (host side)
│   ├── symbios-config.py     # Generic writer for other config-dir files
│   ├── symbios-router-upnp.sh  # Router port-forwarding dispatcher (generic UPnP)
│   ├── symbios-router-fritz.py # FRITZ!Box port-forwarding backend (data.lua API)
│   ├── runchecks.d/      # Health-check scripts (run by runchecks.sh)
│   ├── autoupdate.d/     # Update dispatchers (debian / docker / symbios)
│   └── backup.d/         # Backup modules (docker, ldap-docker, …)
│   └── ldap-groups.d/    # Hooks fired on LDAP group/membership changes
│   (full reference: SCRIPTS.md; per-script help: `<name>.sh --help`)
├── services/             # OPTIONAL user services (each = one playbook)
│   ├── home-assistant.yml# Example service (canonical Traefik file-provider pattern)
│   ├── nextcloud.yml     # Example service
│   └── sftp-share.yml    # Example service (exposes a raw port, not via Traefik)
├── webui/                # Django management UI (shipped as the symbios-ui container)
├── symbpios-image/       # Raspberry Pi OS image builder (first-boot installer via rc.local)
└── LICENSE

On the target host all data lives under the /symbios data root (which may itself be a LUKS-encrypted disk, see scripts/symbios-data-partition.sh):

/symbios/
├── git/SymbiOS/                  # The repository itself (mounted read-only into the WebUI)
├── base-services/                # Core stacks (symbios-ui, traefik, ldap, authelia, …)
├── services/                     # User service stacks (one dir per installed service)
├── docker/                       # Docker data root (daemon.json "data-root")
├── containerd/                   # containerd data root (containerd config.toml)
├── backups/                      # SymbiOS backups
├── ldap-groups.d/               # LDAP group-change hooks (*.hook files executed on mutations)
└── home/symbios                  # symlink target of /home (only if /home was empty)

/home becomes a symlink to /symbios/home on first install (the playbook skips this if /home already contains user data). The live inventory is at /symbios/base-services/symbios-ui/config/inventory.yml. User-uploaded playbooks are stored in /symbios/base-services/symbios-ui/config/user-playbooks/ (see section 11). /var/log stays on the root filesystem.


4. The base system

The base-services/ directory contains the Ansible playbooks that build the platform. install.sh runs them in dependency order. Each playbook manages one concern and is idempotent, so it is safe to re-run any of them.

Playbook Purpose
basics.yml Base OS setup: apt upgrade, locale/timezone, hostname, essentials.
localization.yml Timezone, keyboard layout and system locale.
hardening.yml SSHd hardening, kernel/sysctl and permission hardening.
firewall.yml ufw firewall; opens SSH (port 33), and the ports services need.
backup.yml Restic backup engine and /symbios/backup.d/ pre-run hooks.
autoupdate.yml Unattended upgrades via /symbios/autoupdate.d/.
maintenance.yml Single daily cron window: backup first, then updates (maintenance_time).
runchecks.yml Health/SMART/mdadm checks in /symbios/runchecks.d/.
docker.yml Installs Docker, creates the docker user/group.
dedyn.yml deSEC (dedyn.io) dynamic-DNS client; forces EUI-64 IPv6 addressing (stable interface ID).
traefik.yml Deploys the Traefik reverse proxy (file provider, no Docker socket).
files/traefik-static.yml.sample Traefik static config sample (entrypoints, ACME resolver).
ldap.yml Deploys OpenLDAP; creates /symbios/ldap-groups.d/ for group-change hooks. Also seeds the media access group (fixed GID 31000, see below) and loads the openssh-lpk schema for SSH public keys.
media.yml Creates the shared standard media directories (/symbios/media/*) with the fixed media group, setgid and default ACLs. Runs after ldap.yml.
authelia.yml Deploys Authelia (SSO/2FA/OIDC) and its access-control rules.
smtp.yml Writes an SMTP client marker file when mail is configured.
ssh-keys.yml Deploys root/.ssh/authorized_keys from the inventory.
raspberry.yml Raspberry-Pi-specific setup (desktop, video, boot tweaks).
firefox.yml Firefox/LibreWolf browser policies and extensions (Raspberry Pi only).
symbios-ui.yml Builds the WebUI container + systemd timers/index scripts.

Traefik (traefik.yml)

  • Runs the traefik:latest image with no Docker socket mount.
  • Entrypoints: http (:80, redirects to https), https (:443).
  • One certificate resolver: letsencrypt - public ACME (HTTP-01 challenge).
  • Middlewares are defined in providers/_default.yml: secHeaders@file, authelia@file (forward auth to Authelia), and default-basic-auth@file.
  • Routing is loaded from providers/ (see section 7).

Authelia (authelia.yml)

Provides single sign-on in front of protected hosts. The authelia@file middleware in Traefik redirects unauthenticated users to auth.<base_domain>. Configuration (including the access_control block, rendered from authelia-access-control.j2) is regenerated by the playbook.

LDAP (ldap.yml)

  • openldap - the directory server (backend for Authelia and apps).
  • Creates /symbios/ldap-groups.d/ - drop *.hook files here to react to LDAP group or membership changes. Hooks are executed by the shared dispatcher f_ldap_groups_hooks (in scripts/symbios-lib.sh) after every successful mutation in symbios-ldap-groups.sh. Each hook receives three arguments: $1 = event (group-created, group-deleted, member-added, member-removed), $2 = group name, $3 = uid (empty for create/delete). Hook errors are logged but never abort the calling mutation. See nextcloud-admin-sync.hook for a real-world example.
  • Seeds the media access group (fixed GID 31000, protected against deletion) and loads the openssh-lpk schema, so SSH public keys are stored per user in LDAP (sshPublicKey, editable in the WebUI user dialog) instead of scattered authorized_keys files. LDAP users can read their own entry, which PAM user binds (e.g. SFTP password login) depend on.

Shared media directories (media.yml)

All media-consuming services share one set of central locations (inventory variables, editable as usual; see mediapaths.md for the full design):

Variable Default Use
media_root /symbios/media Base dir; SFTP chroot root
media_audio / media_images / media_videos / media_books …/audio … Read-only libraries (mounted :ro, e.g. Navidrome, Jellyfin)
media_documents …/documents Document archive (e.g. Paperless)
media_inbox …/inbox The only shared writable ingest (SFTP uploads, downloads)

Rules: libraries are 2750 + group-read, the inbox is 2770 + group-write (both root:media with setgid and default ACLs, plus SFTP umask 0007); containers join via the supplementary media GID, SFTP enforces membership via AllowGroups media. App-owned data (caches, databases, thumbnails) stays under /symbios/services/<name>/ and is never shared. New services must use these globals instead of inventing per-service media paths.

Access tiers below the media root:

  • Private (home/<uid>, owner-only): only the user itself, created automatically for everyone with SFTP access.
  • Group shares (shared/<name>): exactly the members of one LDAP group (auto-created as shared-<name>). Manage them on the Shares page in the WebUI (membership via Groups); only empty shares can be deleted.

Member guide: using the shared storage

For teams, friends, clubs or small businesses - same rules for everyone, no special cases. All access works unchanged over LAN and VPN (only reachability of the ports below matters, no extra configuration).

  • SFTP (port 28): server sftp://<base_domain>:28 (or the LAN IP), login with your LDAP username plus password or SSH key. SSH keys are managed per user under Users (key button, one per line). Clients: WinSCP or FileZilla on Windows, sftp/sshfs on Linux/macOS.
  • Where things land: you start in your private dir (home/<uid>, nobody else can see it). Shared uploads go to inbox/ (members of the media group). Libraries (audio, images, videos, books, documents) are read-only; group shares live below shared/.
  • Nextcloud (if installed): the same libraries appear as external storage in Files, plus WebDAV at https://nextcloud.<base_domain>/remote.php/dav/files/<uid>/ for "Map network drive" in Windows Explorer / Finder.
  • Getting access: ask an admin to add you to the media group (libraries + inbox over SFTP) or to a shared-<name> group (one collaboration folder). Deleting in shared folders is immediate and final - there is no trash bin on SFTP.
  • WordPress instances (opt-in via sftp: true): live docroots are exposed per instance at /sftp-share/wordpress/<name>, gated by the instance LDAP group wordpress-<name> - members only ever see their own instances. Ownership stays www-data (33:33), so updates keep working.

5. Domains, TLS and certificates

Certificates are obtained from Let's Encrypt via the letsencrypt ACME resolver (HTTP-01 challenge). The acme_resolver variable is hardcoded to letsencrypt:

acme_resolver: "letsencrypt"

Subdomains are derived from base_domain:

base_domain:     "<your-domain>"   # shared parent for all services

6. External services and network access

For transparency, SymbiOS communicates with the following external services during normal operation. Everything marked optional is only contacted when the matching feature is configured or installed.

Service Purpose Contacted
Let's Encrypt (acme-v02.api.letsencrypt.org) Issues the TLS certificates for *.{{ base_domain }} (ACME HTTP-01 challenge). Only during issuance/renewal. always (Traefik)
deSEC (desec.io API) Dynamic-DNS updates and domain/rrsets management. when DDNS is configured
deSEC echo services (checkipv4.dedyn.io, checkipv6.dedyn.io) Determine the current public IP (DynDNS updates). when DDNS is configured
Debian apt repositories (deb.debian.org, security.debian.org) Base system package updates. always
Docker apt repository (download.docker.com) Installs/updates the Docker engine. docker.yml
PyPI (pypi.org) Downloads Python dependencies when building the WebUI container. WebUI build
Docker Hub (docker.io) Pulls the traefik and authelia images (and any user-installed service images). always / per service
GitHub Container Registry (ghcr.io) Optional service images (paperless-ngx, home-assistant, …). per service
GitHub (github.com/egabosh/SymbiOS, raw.githubusercontent.com) Clones/pulls the SymbiOS repo during install and automatic updates. install/update
GitHub (github.com/egabosh/gaboshlib) Installs the shared bash library. basics.yml
Raspberry Pi (downloads.raspberrypi.com) Downloads the base Raspberry Pi OS image. image builder only
Digitalcourage DNS (5.9.164.112, 2a01:4f8:251:554::2) TCP connectivity check in symbios-detect-network-type.sh. DoT only (port 853), not used as nameserver. network detection
FRITZ!Box (192.168.188.1) DNS resolver for the openwrt-vm service (via NAT from host). openwrt-vm
Qualys SSL Labs (ssllabs.com) TLS grade scan of hosted services. optional script

The host resolves DNS through its locally configured resolver (systemd-resolved / router DHCP), so every domain lookup also reaches the configured upstream nameserver.

When enabled, the following user-configurable connections are made:

  • SMTP relay (smtp_server) - sends notification mails.
  • Backup server (backup_server_host) - encrypted restic snapshots over SFTP.
  • deSEC API token (ddns_apikey) - required for DynDNS updates.

Services installed via services/ are free to contact their own external endpoints (e.g. Matrix federation, map tiles) and pull their container images from public registries. See each service playbook for details.

Port forwarding and IPv6

Incoming connections are managed from the WebUI (Settings → Port Forwarding) and handled by the router dispatcher scripts/symbios-router-upnp.sh:

  • FRITZ!Box (AVM) - symbios-router-fritz.py authenticates via PBKDF2 and manages device-bound port rules through the data.lua API.
  • Generic UPnP routers - TR-064 SOAP (AddPortMapping/DeletePortMapping), no credentials required.

Operational notes for FRITZ!Box with dual-stack:

  • The box assigns IPv6 host addresses by SLAAC only, so IPv6 port rules are device-bound and follow the device's current address.
  • IPv6 rules therefore need a stable interface ID. dedyn.yml forces EUI-64 address generation and disables IPv6 privacy extensions, so the IID survives upstream prefix changes; rule creation derives the IID from the device's current global address instead of the box's (often stale) stored value.
  • The box only supports IPv6 forwards where the external and internal port are equal (no port remapping).
  • A separate gateway between ISP router and host is supported: the gateway must forward the ISP prefix to the router, and the host rules keep working across prefix changes.

7. Networking and Traefik routing

SymbiOS uses two Docker networks to separate base services from user services:

  • symbios_base_services (bridge base-services, subnet 192.168.41.0/24): All base services (Traefik, LDAP, Authelia, WebUI) and Traefik's static IP 192.168.41.200. Traefik bridges to the user service network.
  • symbios_services (bridge services, subnet 192.168.42.0/24): Traefik and all user service containers that should be reachable via Traefik. User services cannot reach base services directly.

Traefik reaches each backend by its service name / IP on the respective network.

Routing is file-provider based. Traefik watches /symbios/base-services/traefik/providers/ (mounted as /etc/traefik/providers.local). Files there:

  • _default.yml - shared middlewares (secHeaders@file, authelia@file, …).
  • symbios-services.yml - generated from traefik-services.j2; contains the core routers (authelia, symbios-ui, traefik dashboard).
  • default-basic-auth.usersfile - basic-auth user file.
  • One extra file per user service (the recommended way to expose a service).

A minimal router snippet (YAML) looks like:

http:
  routers:
    myapp:
      rule: "Host(`myapp.{{ base_domain }}`)"
      entryPoints: ["https"]
      middlewares: ["secHeaders@file", "authelia@file"]
      service: myapp
      tls:
        certResolver: "{{ acme_resolver }}"
  services:
    myapp:
      loadBalancer:
        servers:
          - url: "http://myapp:8080"

Because the directory is watched, dropping/updating such a file reconfigures Traefik with no restart.

Services write Traefik provider snippets into /symbios/base-services/traefik/providers/. services/home-assistant.yml and services/nextcloud.yml both show the current file-provider pattern; the Traefik Docker provider is disabled.


8. Installation

Raspberry Pi image

Prebuilt Raspberry Pi images are published in the GitHub releases; see INSTALL.md for the download and write procedure. The image builder in symbpios-image/ can also create one locally.

Manual install (any Debian)

You need a basic Debian install with root SSH access (SymbiOS uses port 33 for SSH).

# on the target machine
wget https://raw.githubusercontent.com/egabosh/SymbiOS/refs/heads/main/install.sh
sudo bash install.sh

install.sh will:

  1. Install Ansible + community.general.
  2. Clone this repo to /symbios/git/SymbiOS (or pull updates).
  3. Create /symbios/base-services/symbios-ui/config/inventory.yml from the bundled template on first run.
  4. Run the base-services playbooks in order (basics -> localization -> hardening -> firewall -> autoupdate -> docker -> dedyn -> ldap -> media-volume -> media -> symbios-ui -> kvm -> runchecks -> backup -> maintenance). On a Raspberry Pi, raspberry.yml and firefox.yml run between media.yml and symbios-ui.yml.
  5. Apply traefik.yml and authelia.yml from the WebUI after base_domain is configured; install.sh does not run them.

After install, edit the inventory to set base_domain and (optionally) deSEC credentials, then apply them via the WebUI (which runs the matching playbook over SSH, see section 9).


9. Managing the system (WebUI / SSH)

  • symbios-ui is a Django web app (container symbios-base-webui) that reads the inventory and lets you change settings, add/remove services, and start/stop containers. The Services section in the sidebar lists all discovered playbooks (built-in, service, and custom) and lets you run their actions. Uploaded playbooks appear under Custom Playbooks with a distinct visual style and can be managed from Settings → Playbooks.
  • No daemon is involved. Every settings change is applied immediately: the settings CLI validates and writes inventory.yml, then resolves the affected playbooks from their uses_vars declarations and runs them in one job. WebUI views keep no hardcoded playbook names. --no-apply is available for tests and low-level callers that must write inventory only.
  • symbios-exec.sh is the minimal executor the WebUI invokes over SSH. It receives a concrete, already-resolved command, audit-logs the invocation (client IP, masked command, syslog + <data_root>/log/symbios-audit.log) and runs it. The webui's SSH key is a normal root key with no command= restriction - trusted admins operate the host, so the executor imposes no command allow-list. All verb logic (status / action / log resolution, catalog building) lives in the WebUI, which parses the playbooks' # docs: blocks locally.
  • Secrets stay on the host. The WebUI container mounts the playbook repo read-only at /repo (see base-services/symbios-ui.yml); the repo only ever contains runtime-generated placeholders (!...!), never real credentials. Real secrets live in each service's /symbios/services/<name>/env and are never mounted into the WebUI.

Manual equivalents:

# re-apply a base-services playbook
ansible-playbook --limit localhost \
  --inventory /symbios/base-services/symbios-ui/config/inventory.yml \
  /symbios/git/SymbiOS/base-services/traefik.yml

# run a service playbook
ansible-playbook --connection=local \
  --inventory /symbios/base-services/symbios-ui/config/inventory.yml \
  --limit localhost \
  -e ansible_python_interpreter=/usr/bin/python3 \
  /symbios/git/SymbiOS/services/home-assistant.yml

10. Adding your own service

Full documentation for creating service playbooks, the # docs: block format, healthcheck scripts, and user-uploaded playbooks is available in the WebUI at Services (or directly from the repository at webui/main/docs/services.md).

Service access control (mandatory)

Every service that provides web access MUST enforce group-based access control. Only LDAP users who are members of the service's designated group(s) may log in.

Group naming convention:

Service type Groups Example
Service with admin/user distinction <service>-users + <service>-admins nextcloud-users, nextcloud-admins
Service without admin/user distinction <service> dabo

How to enforce:

  • OIDC services: Include shared-tasks/oidc-groups.yml in your playbook, then configure the app to restrict login to the group(s). Examples:
    • openwebui: OAUTH_ALLOWED_ROLES=openwebui-users,openwebui-admins
    • home-assistant: HA auth_oidc role mapping
    • nextcloud: user_oidc --group-whitelist-regex + --group-restrict-login-to-whitelist (requires the groups scope; a plain LDAP ldapUserFilterGroups filter does NOT work because OpenLDAP has no memberOf overlay)
    • mastodon: one named Authelia authorization policy per instance, allowing only mastodon-<instance>-users and mastodon-<instance>-admins; public federation and reads stay open
  • Authelia forward-auth services: Add an Authelia access_control rule with subject restricting to <service>-users / <service>-admins.
  • Internal auth services: No LDAP groups needed (service manages own users).

Checklist for new services:

  • Create LDAP groups <service>-users and <service>-admins
  • Configure group restriction at app or proxy level
  • Verify that users NOT in the group cannot access the service

Workflow summary

  1. Create services/<name>.yml with a # docs: header and Ansible tasks.
  2. The playbook creates a Docker Compose stack under /symbios/services/<name>/ and (optionally) a Traefik provider snippet for HTTP routing.
  3. The WebUI discovers it via the # docs: block and presents install/stop/restart buttons, live logs, and health status.
  4. Deploy from the WebUI or manually:
    ansible-playbook --connection=local \
      --inventory /symbios/base-services/symbios-ui/config/inventory.yml \
      --limit localhost \
      -e ansible_python_interpreter=/usr/bin/python3 \
      /symbios/git/SymbiOS/services/<name>.yml

11. User-uploaded playbooks

Upload custom Ansible playbooks through Settings > Playbooks in the WebUI. They are stored on the host at /symbios/base-services/symbios-ui/config/user-playbooks/ and appear in the Services section under Custom Playbooks. See the WebUI documentation for the required # docs: format and upload workflow.


12. Naming conventions

SymbiOS follows a consistent naming scheme for Docker containers, networks, and services to keep the system predictable and easy to debug.

Container names

Scope Prefix Example
Base services symbios-base- symbios-base-traefik, symbios-base-ldap, symbios-base-authelia, symbios-base-webui
User services symbios- symbios-jellyfin, symbios-nextcloud, symbios-matrix
Sub-containers symbios-<service>-<role> symbios-nextcloud-db, symbios-matrix-synapse, symbios-paperless-broker

Docker networks

Network Bridge Purpose
symbios_base_services base-services All base services (Traefik, LDAP, Authelia, WebUI)
symbios_services services Traefik + user services reachable via Traefik
symbios-<service> symbios-<service> Internal network for multi-container service stacks

User service internal networks (e.g. symbios-matrix, symbios-nextcloud) are named after the primary container. Single-container services (e.g. symbios-jellyfin) only join symbios_services and do not create their own network.

Service names (Docker Compose)

Service names in docker-compose.yml are kept short and stable for DNS resolution. The container_name field carries the full prefixed name:

services:
  jellyfin:                        # DNS name (short, stable)
    image: jellyfin/jellyfin:latest
    container_name: symbios-jellyfin  # Display name (prefixed)

Further reading

  • playbooks.md - How to write service playbooks, including naming rules for containers and networks.
  • AGENTS.md - Coding standards and architecture overview for developers and AI assistants working on the SymbiOS codebase.

13. Feature plugin system

Complex services can expose configurable features through the WebUI using the feature plugin system. Features are defined in a plugin.yml manifest inside the service directory (services/<name>/plugin.yml).

How it works

  1. Manifest: plugin.yml defines features with their parameters, groups, and mapping to Ansible playbooks. Each feature has:

    • id, name, icon, description, group
    • target: vm (SSH into target) or host (runs locally)
    • playbook: path to the Ansible playbook in features/
    • params: list of configurable parameters (type: text, password, select, multi-select, number)
    • param_mapping: maps WebUI parameter names to Ansible extra-vars
  2. State: features-state.yml tracks each feature's status (draft/applied/error), enabled/disabled toggle, and saved parameter values.

  3. Detection: Each parameter can have a detect script that discovers available options (e.g., available WiFi radios, network interfaces). The WebUI calls /plugins/<service>/features/<feature>/detect/<param>/ to populate dropdowns.

  4. Application: The WebUI saves parameters, then runs symbios-feature-apply.sh which reads the manifest, maps parameters via param_mapping, and executes the playbook against the target (VM via SSH or host locally). A background thread monitors the job and updates features-state.yml with the result.

Directory structure

services/<name>/
  plugin.yml              # Feature manifest
  features/               # Feature playbooks + detect scripts
    wireless.yml
    detect-radios.sh
    host-bridge.yml
    ...

Path resolution

  • plugin.yml + features/ live in the git repo (read-only source)
  • features-state.yml lives in the config dir (writable, maps to container /config/services/<name>/features-state.yml). The checked-in services/openwrt-vm/features-state.yml is a legacy template, not the live state used by symbios-feature-apply.sh.
  • Feature playbooks run via symbios-feature-apply.sh which resolves paths from g_git_root (playbooks) and g_config_dir (state)

Adding a new feature

  1. Add the feature definition to plugin.yml (see existing entries for format)
  2. Create the playbook in features/
  3. Optionally create a detect script in features/ for dynamic parameters
  4. The feature appears automatically in the WebUI Features tab

Currently implemented

  • openwrt-vm: Network interfaces, WiFi AP, IoT WiFi, WiFi passthrough, WireGuard VPN, DNS over HTTPS, DynDNS, DHCP hosts, DNS records, SSH, Syslog, SMTP.

14. Third-party software

SymbiOS includes or depends on the following third-party software components. Each is included under its respective license.

Frontend (CDN)

Component License Source
Bootstrap MIT https://getbootstrap.com/
Bootstrap Icons MIT https://icons.getbootstrap.com/

Python dependencies

Component License Source
Django BSD-3-Clause https://www.djangoproject.com/
gunicorn MIT https://gunicorn.org/
uvicorn BSD-3-Clause https://www.uvicorn.org/
whitenoise MIT https://github.com/evansd/whitenoise
PyYAML MIT https://pyyaml.org/
ansible-core GPL-3.0 https://github.com/ansible/ansible
paramiko LGPL-2.1 https://www.paramiko.org/
markdown BSD-3-Clause https://python-markdown.github.io/

Docker service images

Component License Source
traefik MIT https://github.com/traefik/traefik
authelia Apache-2.0 https://github.com/authelia/authelia
openldap (via Bitnami) OPL https://www.openldap.org/

Container base image

Component License Source
python:3-slim PSF (Python) / Debian component licenses https://hub.docker.com/_/python/

Runtime dependencies (apt in WebUI container)

Component License
curl MIT/X-derived
procps LGPL-2.1+
ldap-utils OpenLDAP Public License
openssl Apache-2.0
sshpass GPL-2.0+

Ansible community collections

Component License Source
community.general GPL-3.0 https://github.com/ansible-collections/community.general

15. License

SymbiOS is licensed under the GNU General Public License v3.0.

SymbiOS  Copyright (c) 2026, Oliver Bohlen

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

16. Disclaimer

SymbiOS is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors, contributors, or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.

SymbiOS manages critical system infrastructure - firewalls, LDAP directories, TLS certificates, Docker containers, and reverse proxy routing. Incorrect configuration can lead to service outages, data loss, or security vulnerabilities. Always:

  • Back up your system before making changes.
  • Test in a staging environment before deploying to production.
  • Review playbooks before running them, especially third-party or user-uploaded playbooks.
  • Keep your system updated and monitor the health dashboard.

The SymbiOS project and its contributors assume no responsibility for damage, data loss, service disruptions, or security incidents resulting from the use or misuse of this software. Use it at your own risk.


AI

Parts of this project were developed with the assistance of AI coding tools.

About

Debian based Distri for Servers

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages