Skip to content

Commit

Permalink
Merge pull request #21 from karnotxyz/ubuntu_host_fix
Browse files Browse the repository at this point in the history
fix broken host in ubuntu
  • Loading branch information
apoorvsadana authored Jan 27, 2024
2 parents bfa0259 + 5728a9c commit a168edd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cli/explorer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ pub async fn explorer(opts: &ExplorerOpts) {
Some(vec![PortBinding { host_ip: Some("0.0.0.0".to_string()), host_port: Some("4000".to_string()) }]),
);

let host_config = HostConfig { port_bindings: Some(port_bindings), ..Default::default() };
let host_config = HostConfig {
port_bindings: Some(port_bindings),
extra_hosts: Some(vec!["host.docker.internal:host-gateway".to_string()]),
..Default::default()
};

const CONTAINER_NAME: &str = "madara-explorer";

Expand Down

0 comments on commit a168edd

Please sign in to comment.