mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-21 11:25:56 +00:00
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:
3 files changed
+127
-6
No files matched your search
@@ -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") }
|
||||
|
||||
Reference in new issue
Block a user