Skip to content

Sciencewolf/file-server-raspberry-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File server on Raspberry Pi 4B

Host on your Raspberry Pi using Docker

Note

Build and run container

  • sudo docker build -t file-server .
  • docker run -d -p 8080:8080 -v /home/data:/app/data file-server

Note

Stop the container

  • sudo docker stop <container_id>

Note

You can expose the file server to the internet using ngrok.

  • Change domain inside run.sh
  • Add run.sh to crontab: @reboot /bin/bash <path_to>/run.sh