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:
parent
818092fda8
commit
830155b687
2 changed files with 24 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue