|
1 |
| -version: '3.8' |
2 |
| - |
3 | 1 | # {json:scada} Demo - (c) 2020-2024 - Ricardo L. Olsen
|
4 | 2 |
|
5 |
| -# ACCESS VIA WEB BROWSER AT http://127.0.0.1:8080 |
6 |
| -# Grafana access http://127.0.0.1:3000, user=admin password=jsonscada |
| 3 | +# ACCESS VIA WEB BROWSER AT http://127.0.0.1/login/login.html |
7 | 4 | # Must be online to connect to IEC60870-5-104 live demo server at 207.180.242.96:2404.
|
8 | 5 |
|
9 | 6 | services:
|
@@ -305,48 +302,28 @@ services:
|
305 | 302 | networks:
|
306 | 303 | - jsdemo_net
|
307 | 304 |
|
308 |
| - # Dnp3 client: requires wine as it is currently Windows-only |
| 305 | + # Dnp3 client: requires wine as it is currently Windows-only |
309 | 306 | dnp3_client_wine:
|
310 |
| - image: scottyhardy/docker-wine:latest |
311 |
| - container_name: jsdemo_dnp3_client_wine |
312 |
| - command: sh -c "cd /jsonscada_bin/ && sleep 30 && xvfb-run wine Dnp3Client.exe 1 1" |
| 307 | + image: scottyhardy/docker-wine:latest |
| 308 | + container_name: jsdemo_dnp3_client_wine |
| 309 | + #dpkg --add-architecture i386 && apt update && apt install -y xvfb wget libfreetype6 wine wine32:i386 && cd /root && |
| 310 | + #apt update && apt install -y xvfb wget libfreetype6 wine && cd /root && |
| 311 | + command: sh -c "export DISPLAY=:0.0 && cd /root && |
| 312 | + export WINEDEBUG=-all && |
| 313 | + rm -rf /tmp/.X0-lock && (Xvfb :0 -screen 0 1024x768x16 &) && |
| 314 | + wget -nc https://download.visualstudio.microsoft.com/download/pr/3c01bbe6-a49d-468f-8335-f195588f582f/b935469e8480e611eae4d79b2e51965e/dotnet-runtime-6.0.33-win-x64.exe ; |
| 315 | + wget -nc https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks ; |
| 316 | + chmod +x winetricks && |
| 317 | + wine dotnet-runtime-6.0.33-win-x64.exe /q && |
| 318 | + wine ../jsonscada_bin/Dnp3Client.exe " |
313 | 319 | restart: unless-stopped
|
314 |
| - links: |
315 |
| - - jsdemo_mongorsn1 |
316 | 320 | volumes:
|
317 | 321 | - ./conf:/conf
|
318 | 322 | - ./bin_win:/jsonscada_bin
|
| 323 | + links: |
| 324 | + - jsdemo_mongorsn1 |
319 | 325 | networks:
|
320 |
| - - jsdemo_net |
321 |
| - |
322 |
| -# # another option via proton-ge |
323 |
| -# dnp3_client_wine: |
324 |
| -# image: mtapiio/wine8:latest |
325 |
| -# container_name: jsdemo_dnp3_client_wine |
326 |
| -# command: sh -c "dpkg --add-architecture i386 && |
327 |
| -# apt update && apt dist-upgrade -y && |
328 |
| -# apt install -y libc6:i386 libx11-6:i386 libdbus-1-dev:i386 libfreetype6:i386 && |
329 |
| -# apt install -y nano xvfb python3-pip wget libfreetype6 && |
330 |
| -# export WINEDEBUG=-all && |
331 |
| -# pip3 install protonup && |
332 |
| -# rm -rf /tmp/.X0-lock && |
333 |
| -# (Xvfb :0 -screen 0 1024x768x16 &) && |
334 |
| -# export DISPLAY=:0.0 && |
335 |
| -# cd /root && |
336 |
| -# wget -nc https://download.visualstudio.microsoft.com/download/pr/7bb7f85b-9bf0-4c6f-b3e4-a3832720f162/73e280cfd7f686c34748e0bf98d879c7/dotnet-runtime-6.0.19-win-x64.exe && |
337 |
| -# sleep 2 && |
338 |
| -# protonup -t 8.4 -y && |
339 |
| -# echo 555337b3129e4544846342bd94c9a8ac > /etc/machine-id && |
340 |
| -# /root/.steam/root/compatibilitytools.d/GE-Proton8-4/files/bin/wine64 dotnet-runtime-8.0.7-win-x64.exe /q && |
341 |
| -# /root/.steam/root/compatibilitytools.d/GE-Proton8-4/files/bin/wine64 ../jsonscada_bin/Dnp3Client.exe " |
342 |
| -# restart: unless-stopped |
343 |
| -# volumes: |
344 |
| -# - ./conf:/conf |
345 |
| -# - ./bin_win:/jsonscada_bin |
346 |
| -# links: |
347 |
| -# - jsdemo_mongorsn1 |
348 |
| -# networks: |
349 |
| -# - jsdemo_net |
| 326 | + - jsdemo_net |
350 | 327 |
|
351 | 328 | # # Metabase for dashboards (can connect to MONGODB and POSTGRESQL)
|
352 | 329 | # metabase:
|
|
0 commit comments