Public Repository

Last pushed: 2 years ago
Short Description
Simple file upload service.
Full Description

File Upload

Simple file upload service based on docker-jquery-file-upload.

Creating a container

  1. Pull the image.

    docker pull bigdatauniversity/file-upload
    
  2. 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
    
  3. Point your browser to the address http://localhost:8080.

    Note: If you are using Boot2Docker/Kitematic, you must replace localhost with the IP address of your VM (E.g.: http://192.168.99.100:8080).

Docker Pull Command
Owner
bigdatauniversity

Comments (1)
isaldarriaga
2 months ago

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