2020-08-02 20:15:13 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "**** Building latest PiFrameFleet container ****"
|
|
|
|
$(pwd)/piframefleet_build.sh
|
|
|
|
|
|
|
|
echo "**** Deleting Original Container ****"
|
|
|
|
sudo docker rm -f piframefleet
|
|
|
|
|
|
|
|
echo "**** Running PiFrameFleet ****"
|
|
|
|
sudo docker run -it \
|
|
|
|
--restart unless-stopped \
|
|
|
|
--name piframefleet \
|
|
|
|
--cap-add=NET_ADMIN \
|
|
|
|
--cap-add=SYS_MODULE \
|
|
|
|
-e TZ=UTC \
|
2020-08-04 20:56:43 +00:00
|
|
|
-e ENABLE_WIREGUARD=true \
|
2020-08-03 22:24:11 +00:00
|
|
|
-e ENABLE_SYNCTHING=true \
|
2020-08-02 20:15:13 +00:00
|
|
|
-e ENABLE_FILEBROWSER=true \
|
2020-08-04 20:56:43 +00:00
|
|
|
-p 51821:51821/udp \
|
2020-08-02 20:15:13 +00:00
|
|
|
-p 8384:8384/tcp \
|
|
|
|
-p 22000:22000/tcp \
|
|
|
|
-p 9191:9191/tcp \
|
|
|
|
-v /lib/modules:/lib/modules:ro \
|
2020-08-03 22:24:11 +00:00
|
|
|
-v /var/piframefleet/syncthing:/opt/syncthing \
|
2020-08-02 20:15:13 +00:00
|
|
|
-v /var/piframefleet/filebrowser:/opt/filebrowser \
|
2020-08-04 20:59:30 +00:00
|
|
|
-v /var/piframefleet/wireguard:/var/wireguard \
|
2020-08-04 06:39:09 +00:00
|
|
|
-v /var/piframefleet/ansible:/opt/ansible \
|
2020-08-02 20:15:13 +00:00
|
|
|
-v /var/piframefleet/pictures:/opt/pictures \
|
|
|
|
piframe/piframefleet:latest
|