Skip to content

Commit

Permalink
Bind to 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
junlarsen committed Apr 1, 2024
1 parent 6b1b343 commit d251866
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ RUN apt-get update && apt-get install -y ca-certificates libssl3

COPY --from=builder ./target/release/pizzapicker ./target/release/pizzapicker

EXPOSE 3000

CMD ["/target/release/pizzapicker"]
2 changes: 1 addition & 1 deletion src/healthcheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use tokio::net::TcpListener;
#[tracing::instrument]
pub async fn start_http_server() -> tokio::io::Result<()> {
tracing::info!("Starting HTTP server");
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));
let addr = SocketAddr::from(([0, 0, 0, 0], 3000));
let listener = TcpListener::bind(addr).await?;

loop {
Expand Down

0 comments on commit d251866

Please sign in to comment.