Skip to content

yngfoxx/storj-static-host

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Storj DCS - Static Web Hosting Setup With Docker

Prerequisite

Storj

  1. Create a storj bucket.
  2. (Optional) Create a /www folder in the bucket.
  3. Upload an index.html file to the root folder (www is the root folder for BUCKET_NAME/www)
  4. Create an access token with read and list permissions for the bucket.
  5. Build the image with the arguments as shown below then run it.
  6. The container will output the zone records you need to terminal.
  7. Update your DNS records with the zone records, and that's all :)

Note: Terminate the container once you are done.

Build

Run the following command to build your docker image

docker build . -t storj-host \
    --build-arg ACCESS_GRANT=${ACCESS_GRANT} \
    --build-arg HOSTNAME=${HOSTNAME} \
    --build-arg BUCKET_PATH=${BUCKET_PATH} \
    --build-arg LINKSHARE_URL=https://link.storjshare.io

Note: BUCKET_PATH can be BUCKET_NAME/www or just BUCKET_NAME

Run

Then you can start the image as a container with the following command

docker run storj-host

About

Storj DCS - Static Web Hosting Setup With Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published