Spaces:
Sleeping
Sleeping
Suchinthana commited on
Commit ·
6837238
1
Parent(s): fbb5edb
Change HTTP port from 8080 to 7860
Browse filesUpdate the exposed HTTP port and application config to use port 7860 instead of 8080. Modified Dockerfile EXPOSE and HTTP_PORT in csv_opcua_server.py so the container and server configuration are consistent.
- Dockerfile +1 -1
- csv_opcua_server.py +1 -1
Dockerfile
CHANGED
|
@@ -20,7 +20,7 @@ COPY . .
|
|
| 20 |
|
| 21 |
# Expose ports
|
| 22 |
EXPOSE 4840
|
| 23 |
-
EXPOSE
|
| 24 |
|
| 25 |
# Run the app
|
| 26 |
CMD ["python", "csv_opcua_server.py"]
|
|
|
|
| 20 |
|
| 21 |
# Expose ports
|
| 22 |
EXPOSE 4840
|
| 23 |
+
EXPOSE 7860
|
| 24 |
|
| 25 |
# Run the app
|
| 26 |
CMD ["python", "csv_opcua_server.py"]
|
csv_opcua_server.py
CHANGED
|
@@ -11,7 +11,7 @@ from asyncua import Server, ua
|
|
| 11 |
# =========================
|
| 12 |
BIND_IP = "0.0.0.0"
|
| 13 |
OPCUA_PORT = 4840
|
| 14 |
-
HTTP_PORT =
|
| 15 |
CSV_FILE = "data.csv"
|
| 16 |
ROW_INTERVAL = 2 # seconds
|
| 17 |
|
|
|
|
| 11 |
# =========================
|
| 12 |
BIND_IP = "0.0.0.0"
|
| 13 |
OPCUA_PORT = 4840
|
| 14 |
+
HTTP_PORT = 7860
|
| 15 |
CSV_FILE = "data.csv"
|
| 16 |
ROW_INTERVAL = 2 # seconds
|
| 17 |
|