# On-Premises [toc] * Built-in account: **swae** (software application engineer) ## M840MB | Type | Hostname | LAN | Role | Service (Port) | | ---- | ---------- | ------------- | ------------------------------------------------------- | --------------------------------------------------- | | Node | pve | 192.168.1.101 | Proxmox 8 | 8006 | | No. | LXC | LAN | Role | Service (Port) | | --- | ---- | ------------- | --------------------------------------- | ----------------------------------------------------------------------------------------------- | | 201 | jan | 192.168.1.221 | Jumphost | PPPoE, VPN, HAProxy | | 223 | mar | 192.168.1.223 | [SPX](http://192.168.1.223:8080) | TB: 8080<br />sp2-simulator: 18080<br />timefold-employee: 8081<br />timefold-maintenance: 8082 | | 225 | proj | 192.168.1.225 | [Project Management](http://proj.local) | | No. | VM | LAN | Role | Service (Port) | | ---- | ---------- | ------------- | ------------------------------------------------------- | --------------------------------------------------- | | 202 | feb | 192.168.1.202 | [WiSights sandbox](http://192.168.1.202:8080) | PE:8080, CE:8081, sp2-simulator: 8083, chatbot:5000 | | 204 | apr | 192.168.1.226 | sandbox, workgroup | GNOME, RDP, 8834:nessus | | 205 | may | 192.168.1.205 | TBCE</br>( source code & rabbitMQ )</br>Digital Signage | 8080, 8081 | ## PE5100D | Type | Hostname | LAN | Role | Service (Port) | | ---- | ---------- | ------------- | ------------------------------------------------------- | --------------------------------------------------- | | Node | pve 8 | 192.168.1.102 | Proxmox 8 | 8006 | | No. | VM | LAN | Role | Service (Port) | | ---- | ---------- | ------------- | ------------------------------------------------------- | --------------------------------------------------- | | 190 | aps | 192.168.1.190 | | | | 191 | cfs | 192.168.1.191 | ... | ... | | 229 | cfs-lab | 192.168.1.229 | ... | ... | | 230 | aps-lab | 192.168.1.230 | ... | ... | | 231 | service-plex | 192.168.1.192 | | | | 232 | tb | 192.168.1.232 | | | ### aps ### cfs ### service-plex ## PE2000S | Type | Hostname | LAN | Role | Service (Port) | | ---- | ---------- | ------------- | ------------------------------------------------------- | --------------------------------------------------- | | Node | pve 8 | 192.168.1.103 | Proxmox 8 | 8006 | No. | VM | LAN | Role | Service (Port) | | ---- | ---------- | ------------- | ------------------------------------------------------- | --------------------------------------------------- | | 173 | edgeplus | 192.168.1.173 | [Edge+](http://192.168.1.173:8080) | Edge:8080 | | 183 | dev | 192.168.1.183 | ... | ... | | 192 | ags | 192.168.1.192 | AGS | | | 193 | ite | 192.168.1.193 | ITE | | | 194 | edge-jul | 192.168.1.194 | TB-Edge of .1.232 | | ### VM: 173 (edgeplus) * http://192.168.1.173:8080 ![image](https://hackmd.io/_uploads/SJS8lXShkl.png) * **Account** | ID | 備註 | | -------- |--- | | swae | Ops account| * **Disk** ``` swae@edgeplus:~$ df -h Filesystem Size Used Avail Use% Mounted on udev 1.9G 0 1.9G 0% /dev tmpfs 392M 816K 391M 1% /run /dev/sda1 31G 9.4G 20G 33% / tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 392M 0 392M 0% /run/user/1000 ``` * **Listening TCP Ports** **==ss -ltp==** ``` State Recv-Q Send-Q Local Address:Port Peer Address:Port Process LISTEN 0 4096 0.0.0.0:5432 0.0.0.0:* LISTEN 0 4096 0.0.0.0:8081 0.0.0.0:* LISTEN 0 4096 0.0.0.0:8080 0.0.0.0:* LISTEN 0 511 0.0.0.0:8082 0.0.0.0:* LISTEN 0 4096 0.0.0.0:1883 0.0.0.0:* LISTEN 0 128 0.0.0.0:22 0.0.0.0:* LISTEN 0 4096 0.0.0.0:5000 0.0.0.0:* LISTEN 0 4096 [::]:5432 [::]:* LISTEN 0 4096 [::]:8081 [::]:* LISTEN 0 4096 [::]:8080 [::]:* LISTEN 0 4096 [::]:1883 [::]:* LISTEN 0 128 [::]:22 [::]:* LISTEN 0 4096 [::]:5000 [::]:* ``` * **Docker up running** * **docker-compose.yml** (/home/swae/edgeplus/docker-compose.yml) ```yaml swae@edgeplus:~/edgeplus$ cat docker-compose.yml services: ds-edge: image: "5giotlead/ds-edge:1.0.0" restart: always depends_on: edgeplus: condition: service_healthy ports: - "8081:8081" environment: DATASOURCE_URL: jdbc:postgresql://postgres:5432/edgeplus SPRING_DATASOURCE_USERNAME: postgres SPRING_DATASOURCE_PASSWORD: postgres SPRING_QUARTZ_JDBC_INITIALIZE-SCHEMA: never SERVER_PORT: 8081 TB_HOST: edgeplus TB_HTTP_PORT: 8080 TB_SECURE: false CLOUD_RPC_HOST: 192.168.1.223 CLOUD_RSOCKET_PORT: 9898 CLOUD_ROUTING_KEY: 5d7ebe7e-dfb5-8718-7868-043dbc7fc1f1 CLOUD_ROUTING_SECRET: 3mzfxx1vdqq296y825y5 RSOCKET_CONNECT_RETRY_INTERVAL: 10 RSOCKET_CONNECT_RESUME_INTERVAL: 10 devices: - /dev/ttyS1:/dev/ttyS1 volumes: - /usr/share/nginx/.edgeplus-resource:/resource iot-gateway: image: "thingsboard/tb-gateway:3.6.1" restart: always depends_on: edgeplus: condition: service_healthy ports: - "5000:5000" # Comment if you don't use REST connector and change if you use another port # - "1052:1052" # BACnet connector # - "5026:5026" # Modbus TCP connector (Modbus Slave) # - "50000:50000/tcp" # Socket connector with type TCP # - "50000:50000/udp" # Socket connector with type UDP extra_hosts: - "host.docker.internal:host-gateway" environment: - host=edgeplus - port=1883 - accessToken=xp7oKjKLsHI4CcMp4ogb devices: - /dev/ttyS0:/dev/ttyS0 volumes: - ./.edgeplus-gw-config:/thingsboard_gateway/config - ./.edgeplus-gw-logs:/thingsboard_gateway/logs - ./.edgeplus-gw-extensions:/thingsboard_gateway/extensions edgeplus: image: "5giotlead/edgeplus:3.8.0EDGE" restart: always healthcheck: test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080"] interval: 10s timeout: 5s retries: 5 start_period: 1m depends_on: - postgres ports: - "8080:8080" - "1883:1883" - "5683-5688:5683-5688/udp" environment: SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/edgeplus CLOUD_ROUTING_KEY: 5d7ebe7e-dfb5-8718-7868-043dbc7fc1f1 CLOUD_ROUTING_SECRET: 3mzfxx1vdqq296y825y5 CLOUD_RPC_HOST: 192.168.1.223 volumes: - edgeplus-data:/data - edgeplus-logs:/var/log/tb-edge #- ./.edgeplus-conf:/usr/share/tb-edge/conf - ./.edgeplus-extensions:/usr/share/tb-edge/extensions postgres: restart: always image: "postgres:15" ports: - "5432:5432" environment: POSTGRES_DB: edgeplus POSTGRES_PASSWORD: postgres volumes: - edgeplus-db:/var/lib/postgresql/data volumes: edgeplus-data: name: edgeplus-data edgeplus-logs: name: edgeplus-logs edgeplus-db: name: edgeplus-db ``` * ``docker ps --no-trunc`` | CID | IMAGE | COMMAND | PORTS | NAMES | | -------- | -------- | -------- | -------- | -------- | | -c7e1 | thingsboard/tb-gateway:3.6.1 | "/bin/sh /start-gateway.sh" | 0.0.0.0:5000->5000/tcp, :::5000->5000/tcp | edgeplus-iot-gateway-1 | | -0c5e | 5giotlead/ds-edge:1.0.0 | "java -jar /app.jar" | 0.0.0.0:8081->8081/tcp, :::8081->8081/tcp | edgeplus-ds-edge-1 | | -f312 | 5giotlead/edgeplus:3.8.0EDGE | "start-tb-edge.sh" | 0.0.0.0:1883->1883/tcp, :::1883->1883/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp, 0.0.0.0:5683-5688->5683-5688/udp, :::5683-5688->5683-5688/udp | edgeplus-edgeplus-1 | | -aa8c | postgres:15 | "docker-entrypoint.sh postgres" | 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp | edgeplus-postgres-1 | ### VM: 183 (dev) ### VM: 192 (ags) ### VM: 193 (ite) ### VM: 194 (edge-sandbox) ## 物聯網設備 | No. | Model | LAN | Role | 備註 | | ---- | ---------- | ------------- | ------------------------------------------------------- | ---------------------------------- | | 1 | Axis P1465-LE | 192.168.1.57 | AI Camera | swae/5G****** | | ~~2~~ | Axis P1465-LE (原廠借測,已歸還。) | ~~192.168.1.56~~ | AI Camera | root/pass | ## 周邊設備 ### 印表機 | No. | HW | LAN | Role | Service (Port) | | ---- | ---------- | ------------- | ------------------------------------------------------- | --------------------------------------------------- | | | DCP-L2540DW | 192.168.1.126 | Printer (http://192.168.1.126) | | :::spoiler archive | No. | Hostname | LAN | Role | Service (Port) | | ---- | ---------- | ------------- | ------------------------------------------------------- | --------------------------------------------------- | | 00 | pve | 192.168.1.101 | Proxmox 7 | 8006 | | 01 | jan | 192.168.1.221 | Jumphost | PPPoE, VPN, HAProxy | | 02 | feb | 192.168.1.202 | ==TBPE== | PE:8080, CE:8081, sp2-simulator: 8083, chatbot:5000 | | 02\* | tb-dev | 192.168.1.112 | SmartRV, Keycloak | 443, 8081, 8443 | | 03 | mar | 192.168.1.203 | ==TB Edge== | 8080 | | 04 | apr | 192.168.1.226 | Sandbox, Workgroup | GNOME, RDP, 8834:nessus | | 05 | may | 192.168.1.205 | TBCE</br>( source code & rabbitMQ )</br>Digital Signage | 8080, 8081 | | 06 | jun | 192.168.1.206 | TB Microservices, wistron mock device simulator | 8084 | | 225 | proj | 192.168.1.225 | [Proj Mgmt](http://proj.local) | | | 08 | aug | 192.168.1.208 | | | | 09 | sep | 192.168.1.209 | | | | 10 | oct | 192.168.1.210 | | | | 11 | nov | 192.168.1.211 | | | | 12 | dec | 192.168.1.212 | | | | 13 | display | 192.168.1.111 | Digital Signage | | | 14 | feb | 192.168.1.222 | ==TB - PE== | | | 15 | mar | 192.168.1.223 | ==TBCE (Monolith)== | TB: 8080<br />sp2-simulator: 18080 | | 16 | apr | 192.168.1.224 | ==TBCE (MSA)== | | | 17 | display | 192.168.1.140<br />192.168.57.100 | Media Player | TB-edge: 8080<br />GO2RTC -<br />http/ui: 1984,<br />srtp: 8443,<br />rtsp: 8554,<br />webrtc: 8555 | | 18 | pve-backup | 區網: 192.168.57.101 | Proxmox Backup Server<br/> Mock IP-CAM | PBS: 8007 :::| ## ThingsBoard CE ## ThingsBoard PE