Skip to content

Commit 3a7257f

Browse files
committed
Fixed an error in the update-ip script that wasn't mounting the ssl volumes preventing Apache server to start correctly
1 parent d898043 commit 3a7257f

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ WebInterface/SYMBOLOGY_MAPPING_RULES.md
4444
console.txt
4545
nul
4646
WebInterface/ssl/ssl/
47+
WebInterface/ssl/backup/

WebInterface/update-network-ip.bat

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,27 @@ REM Restart container with new HOST_IP environment variable
3535
docker stop multibarcode-webinterface
3636
docker rm multibarcode-webinterface
3737

38-
docker run -d --name multibarcode-webinterface -p 3500:3500 -e MYSQL_ROOT_PASSWORD=root_password -e MYSQL_DATABASE=barcode_wms -e MYSQL_USER=wms_user -e MYSQL_PASSWORD=wms_password -e DB_HOST=127.0.0.1 -e DB_NAME=barcode_wms -e DB_USER=wms_user -e DB_PASS=wms_password -e WEB_PORT=3500 -e HOST_IP=%LOCAL_IP% -e EXPOSE_PHPMYADMIN=false -e EXPOSE_MYSQL=false -v multibarcode_mysql_data:/var/lib/mysql --restart unless-stopped multibarcode-webinterface:latest
38+
docker run -d ^
39+
--name multibarcode-webinterface ^
40+
-p 3500:3500 ^
41+
-p 3543:3543 ^
42+
-e MYSQL_ROOT_PASSWORD=root_password ^
43+
-e MYSQL_DATABASE=barcode_wms ^
44+
-e MYSQL_USER=wms_user ^
45+
-e MYSQL_PASSWORD=wms_password ^
46+
-e DB_HOST=127.0.0.1 ^
47+
-e DB_NAME=barcode_wms ^
48+
-e DB_USER=wms_user ^
49+
-e DB_PASS=wms_password ^
50+
-e WEB_PORT=3500 ^
51+
-e HOST_IP=%LOCAL_IP% ^
52+
-e EXPOSE_PHPMYADMIN=false ^
53+
-e EXPOSE_MYSQL=false ^
54+
-v multibarcode_mysql_data:/var/lib/mysql ^
55+
-v "%~dp0ssl":/etc/ssl/certs ^
56+
-v "%~dp0ssl":/etc/ssl/private ^
57+
--restart unless-stopped ^
58+
multibarcode-webinterface:latest
3959

4060
echo Network IP updated to: %LOCAL_IP%
4161
echo Container restarted successfully.

0 commit comments

Comments
 (0)