diff --git a/daemon/src/config.rs b/daemon/src/config.rs index 3b4c0cb733..4b70a63441 100644 --- a/daemon/src/config.rs +++ b/daemon/src/config.rs @@ -48,9 +48,9 @@ pub struct GridConfigBuilder { impl Default for GridConfigBuilder { fn default() -> Self { Self { - validator_endpoint: Some("localhost:4004".to_owned()), + validator_endpoint: Some("127.0.0.1:4004".to_owned()), log_level: Some(Level::Warn), - rest_api_endpoint: Some("localhost:8080".to_owned()), + rest_api_endpoint: Some("127.0.0.1:8080".to_owned()), } } } @@ -131,7 +131,7 @@ mod test { .build() .expect("Unable to build configuration"); - assert_eq!("localhost:4004", config.validator_endpoint()); - assert_eq!("localhost:8080", config.rest_api_endpoint()); + assert_eq!("127.0.0.1:4004", config.validator_endpoint()); + assert_eq!("127.0.0.1:8080", config.rest_api_endpoint()); } } diff --git a/docker-compose.yaml b/docker-compose.yaml index 7b4cf3a7e0..0c798b209a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -102,4 +102,8 @@ services: build: context: . dockerfile: daemon/Dockerfile - entrypoint: "/gridd -v" + expose: + - 8080 + ports: + - '8080:8080' + entrypoint: "/gridd -v -b gridd:8080