Skip to main content

systemprompt_cli/commands/cloud/tenant/docker/
mod.rs

1//! Docker-backed `PostgreSQL` provisioning for local tenants.
2//!
3//! Each local tenant owns a compose project, so provisioning matches what the
4//! template's local setup produces and two installations on one host never
5//! contend for a container, a volume, a port, or a role. Public surface: the
6//! container descriptor and the project lifecycle helpers consumed by the
7//! create and delete flows.
8//!
9//! Copyright (c) systemprompt.io — Business Source License 1.1.
10//! See <https://systemprompt.io> for licensing details.
11
12pub mod container;
13
14pub use container::TenantContainer;
15pub(super) use container::{
16    compose_path_for_project, generate_admin_password, is_project_running, nanoid,
17    new_local_tenant_id, remove_project, start_project,
18};