Suchinthana commited on
Commit
6837238
·
1 Parent(s): fbb5edb

Change HTTP port from 8080 to 7860

Browse files

Update 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.

Files changed (2) hide show
  1. Dockerfile +1 -1
  2. csv_opcua_server.py +1 -1
Dockerfile CHANGED
@@ -20,7 +20,7 @@ COPY . .
20
 
21
  # Expose ports
22
  EXPOSE 4840
23
- EXPOSE 8080
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 = 8080
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