- Create a storj bucket.
- (Optional) Create a
/www
folder in the bucket. - Upload an
index.html
file to the root folder (www
is the root folder forBUCKET_NAME/www
) - Create an access token with
read
andlist
permissions for the bucket. - Build the image with the arguments as shown below then run it.
- The container will output the zone records you need to terminal.
- Update your DNS records with the zone records, and that's all :)
Note: Terminate the container once you are done.
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
Then you can start the image as a container with the following command
docker run storj-host