Skip to content

Commit

Permalink
chore: fix port
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone committed Nov 19, 2024
1 parent 38f4eb0 commit 67ea64d
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions crates/orbit-sequencer-deployer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ impl OrbitStack {
"--http.corsdomain=*".to_string(),
"--http.addr=0.0.0.0".to_string(),
"--http.vhosts=*".to_string(),
"--ws.port=8548".to_string(),
"--ws.addr=0.0.0.0".to_string(),
"--ws.origins=*".to_string(),
"--http.port=8449".to_string(), // Add explicit HTTP port
];

// Add sequencer-specific configuration
Expand Down Expand Up @@ -171,27 +169,19 @@ impl OrbitStack {
image: Some(NITRO_NODE_IMAGE),
exposed_ports: Some({
let mut ports = HashMap::new();
ports.insert("8547/tcp", HashMap::new());
ports.insert("8548/tcp", HashMap::new());
ports.insert("9642/tcp", HashMap::new());
ports.insert("8449/tcp", HashMap::new());
ports
}),
host_config: Some(HostConfig {
port_bindings: Some({
let mut bindings = HashMap::new();
for (container_port, host_port) in [
("8547/tcp", "8547"),
("8548/tcp", "8548"),
("9642/tcp", "9642"),
] {
bindings.insert(
container_port.to_string(),
Some(vec![PortBinding {
host_ip: Some("0.0.0.0".to_string()),
host_port: Some(host_port.to_string()),
}]),
);
}
bindings.insert(
"8449/tcp".to_string(),
Some(vec![PortBinding {
host_ip: Some("127.0.0.1".to_string()), // Match docker-compose binding
host_port: Some("8449".to_string()),
}]),
);
bindings
}),
..Default::default()
Expand Down

0 comments on commit 67ea64d

Please sign in to comment.