myMovie is a single page application that is integrated with Nginx & Aria2 & Docker. It allows you to:
- Run the app as a docker image on any OS
- Download videos with Bittorrent and Metalink by using Arira2
- Select the downloaded videos and watch them from any host (PC/Tablet/Phone) within the network by using Nginx
Usage
- Build the docker image of myMovie:
make build
- Run the image locally:
make start
- Download the image from docker hub:
docker pull hankshz/mymovie
It's much complicated to setup docker on Windows (and Windows older than Windows 10 requires even extra effort) compared to on Linux.
- Follow the doc to install Docker Toolbox on Windows
- Run myMovie:
This will only make the app visible on docker VM's Port 80
$ docker run -p 80:80 hankshz/mymovie
- Get the IP of docker VM:
$ docker-machine ip default: 192.168.99.100
- Get the IP of windows host:
> ipconfig
- Setup IP forwarding with admin:
> netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=80 connectaddress=192.168.99.100 connectport=80
- Highly possible, you also need to enable the port from Windows Firewall. This blog explains it pretty well
- Another issue with docker toolbox is that it will have default location of VM image (in C:) and default disk size (20G), which is probably not what you want. To change the default location, you need to add MACHINE_STORAGE_PATH & DOCKER_CERT_PATH as mentioned in this thread. To change the disk size, you need to recreate the default VM as mentioned in this thread. And when creating a large disk, you probably will hit the slow zero filing issue as mentioned in this thread. Just be patient.
Note that $ means commands run on docker prompt and > means commands run on cmd prompt