piframe/piframefleet_run.sh

30 lines
881 B
Bash
Raw Normal View History

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 \
-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 \
-v /var/piframefleet/syncthing:/opt/syncthing \
2020-08-02 20:15:13 +00:00
-v /var/piframefleet/filebrowser:/opt/filebrowser \
2020-08-05 01:53:42 +00:00
-v /var/piframefleet/wireguard:/opt/wireguard \
-v /var/piframefleet/ansible:/opt/ansible \
2020-08-02 20:15:13 +00:00
-v /var/piframefleet/pictures:/opt/pictures \
piframe/piframefleet:latest