Merge pull request #13 from lostmind84/feat/linux-b2-container-db

feat: database access through the container for Docker installations
This commit is contained in:
Corfirean authored and GitHub committed 2026-10-05 01:45:07 +05:00
commit f13398bbd7
3 files changed
+127 -6

No files matched your search

+5
View File
@@ -92,6 +92,11 @@ impl Config {
Ok(())
}
/// Name of the database container (the one `docker exec` talks to).
pub(crate) fn database_container(&self) -> String {
self.names().db
}
pub(crate) fn names(&self) -> Names {
let p = &self.project;
Names { network: format!("coa-{p}"), volume: format!("coa-{p}-db"), db: format!("coa-{p}-db"), world: format!("coa-{p}-world"), auth: format!("coa-{p}-auth") }