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

Before use, Lungo requires some configuration. You can find some examples here.

Please refer to config.yaml and users.yaml for a full list of available options.

You can check the validity of the configuration file 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.1.tar.gz (342.6 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.1-py3-none-any.whl (391.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lungo_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 342.6 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.1.tar.gz
Algorithm Hash digest
SHA256 2f3ebbb1370598e43d88a3c6b447c48ab463bf083302efa626e8c7742bb62589
MD5 51c6946a39aeba315c633cab2a389751
BLAKE2b-256 8cff7802964cf78d64fc7fc434be4817728f794a205ac490d6f10228f70ffce5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lungo_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 391.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da2e941a75e7079a9993851b0cf5668961e34dbd5cd2a4dd19ff1f5931e090cf
MD5 a5eeff8e5bc3a89030dd3bf00075ed7c
BLAKE2b-256 8a191d29eb64e76841fa12818fb967bafb404a8408ee577593a57a5ad8775a82

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