Skip to content

Commit

Permalink
Add restart always to docker scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Jessop authored and Mark Jessop committed Nov 16, 2024
1 parent a085634 commit 0da4d5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions start_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ docker run -d \
-v ~/wenet/rx_images/:/opt/wenet/rx_images/ \
--device /dev/bus/usb \
-p 5003:5003 \
--restart="always" \
ghcr.io/projecthorus/wenet:latest

echo "Navigate to http://localhost:5003/ in your web browser to see the Wenet interface!"
2 changes: 2 additions & 0 deletions start_docker_testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ if [ "$SDR_TYPE" = "RTLSDR" ] ; then
-v ~/wenet/rx_images/:/opt/wenet/rx_images/ \
--device /dev/bus/usb \
-p $WEB_PORT:$WEB_PORT \
--restart="always" \
ghcr.io/projecthorus/wenet:testing
elif [ "$SDR_TYPE" = "KA9Q" ] ; then
docker run -d \
Expand All @@ -104,6 +105,7 @@ elif [ "$SDR_TYPE" = "KA9Q" ] ; then
-v /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket \
--device /dev/bus/usb \
--network host \
--restart="always" \
ghcr.io/projecthorus/wenet:testing

else
Expand Down

0 comments on commit 0da4d5a

Please sign in to comment.