1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-04 01:24:09 +02:00

bind host ip to 'hazehost'

This commit is contained in:
Robin Appelman 2021-05-18 20:00:06 +02:00
commit 830155b687
2 changed files with 24 additions and 1 deletions

View file

@ -64,6 +64,7 @@ impl PhpVersion {
db: &Database,
network: &str,
volumes: Vec<String>,
host: &str,
) -> Result<String> {
pull_image(docker, self.image()).await?;
let options = Some(CreateContainerOptions {
@ -76,6 +77,7 @@ impl PhpVersion {
network_mode: Some(network.to_string()),
// links: Some(links),
binds: Some(volumes),
extra_hosts: Some(vec![format!("hazehost:{}", host)]),
..Default::default()
}),
networking_config: Some(NetworkingConfig {