Simple file upload service based on docker-jquery-file-upload.
Creating a container
Pull the image.
docker pull bigdatauniversity/file-upload
Create and start a container.
PORT=8080 docker run -d \ -p $PORT:80 \ -e SITE_NAME='My Upload Site' \ -v /PATH/TO/FILES:/tmp/uploads \ --name file-upload \ bigdatauniversity/file-upload
Point your browser to the address
Note: If you are using Boot2Docker/Kitematic, you must replace
localhostwith the IP address of your VM (E.g.:
You forgot to mention the user is "admin", as seen in this file generated at runtime: /etc/htpasswd/.htpasswd
.. as a consequence of the following command inside the /start script file:
htpasswd -bc /etc/htpasswd/.htpasswd admin "$SITE_PASSWORD"
Everyone need to provide an extra -e SITE_PASSWORD='password' to the docker run command as seen in the logs of the container. This way:
docker run -d -p 8080:80 -e SITE_NAME='My Site Name' -e SITE_PASSWORD='password' -v /PATH/TO/FILES:/tmp/uploads --name file-upload bigdatauniversity/file-upload