Skip to content

Commit b9b72ec

Browse files
author
michael.yak
committed
SBA should be using port 8080 instead of 8082
1 parent 5cd6434 commit b9b72ec

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ The examples below show a minimal integration of **FastAPI** and **Flask** appli
6868
After installing Flask/FastAPI and Pyctuator, start by launching a local Spring Boot Admin instance:
6969

7070
```sh
71-
docker run --rm --name spring-boot-admin -p 8082:8082 michayaak/spring-boot-admin:2.2.2
71+
docker run --rm --name spring-boot-admin -p 8080:8080 michayaak/spring-boot-admin:2.2.3-1
7272
```
7373

74-
Then go to `http://localhost:8082` to get to the web UI.
74+
Then go to `http://localhost:8080` to get to the web UI.
7575

7676
### Flask
7777
The following example is complete and should run as is.
@@ -94,15 +94,15 @@ Pyctuator(
9494
app_name,
9595
"http://host.docker.internal:5000",
9696
"http://host.docker.internal:5000/pyctuator",
97-
"http://localhost:8082/instances"
97+
"http://localhost:8080/instances"
9898
)
9999

100100
app.run(debug=False, port=5000)
101101
```
102102

103103
The application will automatically register with Spring Boot Admin upon start up.
104104

105-
Log in to the Spring Boot Admin UI at `http://localhost:8082` to interact with the application.
105+
Log in to the Spring Boot Admin UI at `http://localhost:8080` to interact with the application.
106106

107107
### FastAPI
108108
The following example is complete and should run as is.
@@ -137,7 +137,7 @@ Server(config=(Config(app=app, loop="asyncio"))).run()
137137

138138
The application will automatically register with Spring Boot Admin upon start up.
139139

140-
Log in to the Spring Boot Admin UI at `http://localhost:8082` to interact with the application.
140+
Log in to the Spring Boot Admin UI at `http://localhost:8080` to interact with the application.
141141

142142
## Advanced Configuration
143143
The following sections are intended for advanced users who want to configure advanced Pyctuator features.
@@ -262,7 +262,7 @@ Pyctuator(
262262
"Flask Pyctuator",
263263
"http://localhost:5000",
264264
f"http://localhost:5000/pyctuator",
265-
registration_url=f"http://spring-boot-admin:8082/instances",
265+
registration_url=f"http://spring-boot-admin:8080/instances",
266266
registration_auth=auth,
267267
)
268268
```
@@ -274,9 +274,9 @@ To run these examples, you'll need to have Spring Boot Admin running in a local
274274

275275
Unless the example includes a docker-compose file, you'll need to start Spring Boot Admin using docker directly:
276276
```sh
277-
docker run -p 8082:8082 michayaak/spring-boot-admin:2.2.2
277+
docker run -p 8080:8080 michayaak/spring-boot-admin:2.2.3-1
278278
```
279-
(the docker image's tag represents the version of Spring Boot Admin, so if you need to use version `2.0.0`, use `michayaak/spring-boot-admin:2.0.0` instead).
279+
(the docker image's tag represents the version of Spring Boot Admin, so if you need to use version `2.0.0`, use `michayaak/spring-boot-admin:2.0.0` instead, note its accepting connections on port 8082).
280280

281281
The examples include
282282
* [FastAPI Example](examples/FastAPI/README.md) - demonstrates integrating Pyctuator with the FastAPI web framework.

examples/Advanced/advanced_example_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"pyctuator_endpoint": f"http://host.docker.internal:8000/pyctuator",
5151

5252
# Spring Boot Admin registration URL
53-
"sba_registration_endpoint": f"http://localhost:8082/instances",
53+
"sba_registration_endpoint": f"http://localhost:8080/instances",
5454
}
5555
}
5656

examples/Advanced/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ services:
1313
sba:
1414
image: michayaak/spring-boot-admin:2.2.2
1515
ports:
16-
- 8082:8082
16+
- 8080:8080

examples/FastAPI/fastapi_example_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def read_root():
3535
"Example FastAPI",
3636
f"http://{example_app_public_address}:8000",
3737
f"http://{example_app_address_as_seen_from_sba_container}:8000/pyctuator",
38-
f"http://{example_sba_address}:8082/instances",
38+
f"http://{example_sba_address}:8080/instances",
3939
app_description=app.description,
4040
)
4141

examples/Flask/flask_example_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def hello():
3030
"Flask Pyctuator",
3131
f"http://{example_app_public_address}:5000",
3232
f"http://{example_app_address_as_seen_from_sba_container}:5000/pyctuator",
33-
f"http://{example_sba_address}:8082/instances",
33+
f"http://{example_sba_address}:8080/instances",
3434
app_description="Demonstrate Spring Boot Admin Integration with Flask",
3535
)
3636

0 commit comments

Comments
 (0)