Skip to main content

Lungo
Lungo

A home lab setup for small-to-mid-scale private on-premises deployments,
with everything configurable in human-readable YAML files.

PyPI version License: MIT


Features

  • Fully configurable via YAML files - everything including user management
  • Easy interoperability - single sign-on portal to access all applications
  • Batteries-included - comes with a variety of applications out of the box
  • Secure by default - is designed to be run in a non-root user environment

Installation

The easiest way to install Lungo is via pip:

pip install lungo-cli

To install from source, run:

git clone --recurse-submodules https://github.com/raymond-u/lungo
cd lungo
poetry install --compile

Getting started

Prerequisites

Lungo is built upon Docker and Docker Compose. Please ensure they are installed on your machine.

Alternatively, you can use Podman and Podman Compose.

For installation instructions, please refer to their respective documentation.

Rootless execution

For enhanced security, Lungo should be run in a non-root user environment. To do so, the administrator must complete necessary configurations, as described in the Docker guide or the Podman guide.

To enable non-root users to bind to port 80, run:

sudo setcap 'cap_net_bind_service=+ep' "$(command -v lungo)"

Or you can modify the value of net.ipv4.ip_unprivileged_port_start using the following command:

# This will allow any user to bind to port 80
sudo sysctl net.ipv4.ip_unprivileged_port_start=80

In a rootless environment, permissions need to be configured to allow non-root users on the host machine to read and write files created by the container, and vice versa. We recommend creating a dedicated user for Lungo and a group for sharing files between the container and the host. The following commands illustrate this process:

# Create a group for sharing files
sudo groupadd shared

# Create a dedicated user for Lungo
sudo useradd -m -g shared lungo

# Add an existing user to the group
sudo usermod -a -G shared <username>

# Create a directory for shared files
sudo mkdir /mnt/data/shared
sudo chown lungo:shared /mnt/data/shared
sudo chmod g+rws /mnt/data/shared

You can read more about file permissions in a rootless environment here.

Avoid using sudo su lungo to switch to the lungo user when launching Lungo in a rootless environment, as it may not function properly. Instead, set a password for the lungo user and log in normally:

sudo chpasswd <<<'lungo:<password>'

Configuration

Lungo has two essential configuration files: config.yaml, which contains general settings, and users.yaml, dedicated to user management. The default location for these files is platform-dependent, e.g. ~/.config/lungo/ on Linux. You can override this location by passing the --config-dir option to Lungo.

For a full list of available settings, please refer to config.yaml and users.yaml. Also, you may find these examples helpful.

You can verify the correctness of your configuration files by running:

lungo check

Usage

To launch Lungo, just run:

lungo up

Additional notes

You might need to configure your firewall to permit access on ports 80 and 443. For instance, if you're using UFW, run:

sudo ufw allow http
sudo ufw allow https

License

This project is licensed under the MIT License. See LICENSE for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lungo_cli-0.1.5.tar.gz (382.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lungo_cli-0.1.5-py3-none-any.whl (451.8 kB view details)

Uploaded Python 3

File details

Details for the file lungo_cli-0.1.5.tar.gz.

File metadata

  • Download URL: lungo_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 382.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for lungo_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 4db8bb1cb6f340579592116e5fe2ca8bc77fff90e1c5ef4eb9f033c8fa6074fe
MD5 df28335798035cee2d35b2536815df4f
BLAKE2b-256 62a60dcc238cddd01583f1368d27d586250317792cec70f414e3c8fae785b41e

See more details on using hashes here.

File details

Details for the file lungo_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: lungo_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 451.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for lungo_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e4f4cae69df7923f807ebc5857711c9e6776edfcecf7fc32acc745daf5e86e83
MD5 e54f7c0937873be00f9e9b25ebadfb4a
BLAKE2b-256 7b93ecc080e54c494e6f6ab62e8a28f6e0d85a9fa2bb02de204abd66e6839956

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page