mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
sharding option
This commit is contained in:
parent
e13f53e0e5
commit
ce0d3ff3e4
19 changed files with 248 additions and 121 deletions
|
|
@ -1,3 +1,4 @@
|
|||
use crate::cloud::CloudOptions;
|
||||
use crate::config::HazeConfig;
|
||||
use crate::image::pull_image;
|
||||
use crate::service::ServiceTrait;
|
||||
|
|
@ -23,6 +24,7 @@ impl ServiceTrait for Mail {
|
|||
cloud_id: &str,
|
||||
network: &str,
|
||||
_config: &HazeConfig,
|
||||
_options: &CloudOptions,
|
||||
) -> Result<Vec<String>> {
|
||||
let image = "rnwood/smtp4dev";
|
||||
pull_image(docker, image).await?;
|
||||
|
|
@ -66,11 +68,6 @@ impl ServiceTrait for Mail {
|
|||
Some(format!("{}-mail", cloud_id))
|
||||
}
|
||||
|
||||
// no need to wait for mail, as it won't be used until the user logs in
|
||||
async fn is_healthy(&self, _docker: &Docker, _cloud_id: &str) -> Result<bool> {
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
async fn post_setup(
|
||||
&self,
|
||||
_docker: &Docker,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue